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:17:57 +0000 (12:17 +0200)
commit24b79a95b2cb2d8cc5e65e76aecc334bb71e3523
tree57d51973274e0dc2a4cd23714a862a70ad38576d
parentf71d13c397b2133d5e5183e5db3547af271d04d6
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