scsi: ipr: Fix missed EH wakeup
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 15 Mar 2017 21:58:36 +0000 (16:58 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 16:04:05 +0000 (12:04 -0400)
commit66a0d59cdd12546ddf01d229de28b07ccf6d637f
tree53913fbb875c0326453573ff6fafe76732d55fee
parent4935933e07daaf829692fa54abe0c2ad9ac94ed9
scsi: ipr: Fix missed EH wakeup

Following a command abort or device reset, ipr's EH handlers wait for
the commands getting aborted to get sent back from the adapter prior to
returning from the EH handler. This fixes up some cases where the
completion handler was not getting called, which would have resulted in
the EH thread waiting until it timed out, greatly extending EH time.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Wendy Xiong <wenxiong@linux.vnet.ibm.com>
Tested-by: Wendy Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c