scsi: be2iscsi: Replace spin_unlock_bh with spin_lock
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>
Fri, 24 Mar 2017 08:41:42 +0000 (14:11 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 28 Mar 2017 02:03:04 +0000 (22:03 -0400)
spin_unlock_bh back_lock is used in beiscsi_eh_device_reset instead of
spin_lock.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Chris Leech <cleech@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_main.c

index 32b2713cec936ed45c2ce12fe1aa6aa3e02e26b3..ff485738399854b82948fa88cf6b8329bdf39020 100644 (file)
@@ -337,7 +337,7 @@ static int beiscsi_eh_device_reset(struct scsi_cmnd *sc)
                inv_tbl->task[nents] = task;
                nents++;
        }
-       spin_unlock_bh(&session->back_lock);
+       spin_unlock(&session->back_lock);
        spin_unlock_bh(&session->frwd_lock);
 
        rc = SUCCESS;