scsi: qla2xxx: Return error when TMF returns
authorAnil Gurumurthy <anil.gurumurthy@cavium.com>
Wed, 18 Jul 2018 21:29:55 +0000 (14:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2018 10:16:37 +0000 (12:16 +0200)
commita96feef5b07141f304a3e933da2abbd8dfdf5bf1
treefc116e86a194760e3aa034850aaecb6652c3a988
parentf70766f1338d534638914388529cd6a7263db858
scsi: qla2xxx: Return error when TMF returns

commit b4146c4929ef61d5afca011474d59d0918a0cd82 upstream.

Propagate the task management completion status properly to avoid
unnecessary waits for commands to complete.

Fixes: faef62d13463 ("[SCSI] qla2xxx: Fix Task Management command asynchronous handling")
Cc: <stable@vger.kernel.org>
Signed-off-by: Anil Gurumurthy <anil.gurumurthy@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_init.c