scsi: qla2xxx: Reject bsg request if chip is down.
authorQuinn Tran <quinn.tran@cavium.com>
Tue, 11 Sep 2018 17:18:22 +0000 (10:18 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Sep 2018 00:28:10 +0000 (20:28 -0400)
commit56d942de59ebfa2e970a6cd33299d1984710b6c0
tree2e5d9b804c588864bfbd23ae6b9b5bbe1f9cb1bb
parent1e4ac5d6fe0a4af17e4b6251b884485832bf75a3
scsi: qla2xxx: Reject bsg request if chip is down.

Reject bsg request if chip is down.  This prevent erroneous timeout.

Fixes: d051a5aa1c23 ("[SCSI] qla2xxx: Add an "is reset active" helper.")
Cc: stable@vger.kernel.org # 4.10
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_bsg.c