scsi: qla2xxx: Chip reset uses wrong lock during IO flush.
authorQuinn Tran <quinn.tran@cavium.com>
Thu, 28 Dec 2017 20:33:13 +0000 (12:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Jan 2018 04:41:05 +0000 (23:41 -0500)
commitbbead493a3b98dd11372cbdb5405ae9017cab367
tree8a5f3b397f63f8a8625c942a63dab8bdfd9853fd
parentd1e3635a5ef2523e517068d0acb25533e739bf10
scsi: qla2xxx: Chip reset uses wrong lock during IO flush.

As part of chip reset, all commands from all QPairs are
flushed. This patch fixes code to use Q Pair lock for flush
instead of using old hardware_lock.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c