]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[SCSI] libiscsi: disable bh in and abort handler.
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 15 Jul 2009 20:02:57 +0000 (15:02 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 30 Jul 2009 13:49:59 +0000 (08:49 -0500)
The session lock can be held in the scsi eh thread or the completion
paths run from the net softirq. This disables bhs in iscsi_eh_abort when
taking the session lock.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c

index 716cc344c5dfb5253eb5436cd0e19e5fbaa82b66..a751f6230c2258f4e7870391b96330d08e209e5a 100644 (file)
@@ -1974,10 +1974,10 @@ int iscsi_eh_abort(struct scsi_cmnd *sc)
                 * good and have never sent us a successful tmf response
                 * then sent more data for the cmd.
                 */
-               spin_lock(&session->lock);
+               spin_lock_bh(&session->lock);
                fail_scsi_task(task, DID_ABORT);
                conn->tmf_state = TMF_INITIAL;
-               spin_unlock(&session->lock);
+               spin_unlock_bh(&session->lock);
                iscsi_start_tx(conn);
                goto success_unlocked;
        case TMF_TIMEDOUT: