scsi: hisi_sas: decrease running_req in hisi_sas_slot_task_free()
authorXiang Chen <chenxiang66@hisilicon.com>
Fri, 20 Jan 2017 12:45:24 +0000 (20:45 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 21 Jan 2017 00:10:42 +0000 (19:10 -0500)
commit13c599069130e5a1f04a9409d65566e149b12708
treed2c949d6058a8f91a1fc562c2c42c893da15dfd2
parent0757f041b171d19cab9b6dac186a588ba0260055
scsi: hisi_sas: decrease running_req in hisi_sas_slot_task_free()

There is an issue that hisi_sas_dev.running_req is not
decremented properly for internal abort and TMF.

To resolve, only decrease running_req in hisi_sas_slot_task_free()

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c