diff options
author | 2017-01-20 20:45:24 +0800 | |
---|---|---|
committer | 2017-01-20 19:10:42 -0500 | |
commit | 13c599069130e5a1f04a9409d65566e149b12708 (patch) | |
tree | d2c949d6058a8f91a1fc562c2c42c893da15dfd2 /drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | |
parent | scsi: hisi_sas: fix probe ordering problem (diff) | |
download | linux-dev-13c599069130e5a1f04a9409d65566e149b12708.tar.xz linux-dev-13c599069130e5a1f04a9409d65566e149b12708.zip |
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>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas_v2_hw.c')
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 9e16f42944bc..1b214450dcb5 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c @@ -1830,8 +1830,6 @@ slot_complete_v2_hw(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot, } out: - if (sas_dev) - atomic64_dec(&sas_dev->running_req); hisi_sas_slot_task_free(hisi_hba, task, slot); sts = ts->stat; |