scsi: qla2xxx: Add command completion for error path
authorDuane Grigsby <duane.grigsby@cavium.com>
Wed, 23 Aug 2017 22:04:58 +0000 (15:04 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:19 +0000 (22:29 -0400)
commitcf19c45dba19757e5016cb1acc5ef1529005f8c3
treebdafceae9d3b31387ed70a9469dcd493bd920e45
parente6373f33a6bba0de9f543f4a7faeaaa536c62997
scsi: qla2xxx: Add command completion for error path

The driver held spinlocks during callbacks for NVME errors which
resulted in a deadlock because recovery LS cmds needed the same lock.

Signed-off-by: Duane Grigsby <duane.grigsby@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_def.h
drivers/scsi/qla2xxx/qla_gbl.h
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_mid.c
drivers/scsi/qla2xxx/qla_nvme.c
drivers/scsi/qla2xxx/qla_os.c