scsi: smartpqi: improve handling for sync requests
authorKevin Barnett <kevin.barnett@microsemi.com>
Mon, 18 Jun 2018 18:22:42 +0000 (13:22 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Jun 2018 02:02:25 +0000 (22:02 -0400)
commit957c5ab108c7d98369b7524daea532c0ebbcf845
tree43f3526de25c2d30b2a61dd06896027893c89889
parent4beb4867f049aea801a93a8fc97801250e32d700
scsi: smartpqi: improve handling for sync requests

Decrement the active thread count after the synchronous request was
submitted to the controller but before the driver blocks to wait for the
request to complete.

Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c