diff options
author | Xiang Chen <chenxiang66@hisilicon.com> | 2018-09-24 23:06:30 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-10-16 00:27:04 -0400 |
commit | 584f53fe5f529d877968c711a095923c1ed12307 (patch) | |
tree | 0dec9f098326737e4f4f9c68a09de14eed7b427f /tools/gpio | |
parent | 1668e3b6f8f8ed2ce685691c92b90dfadeaa3f2f (diff) | |
download | linux-584f53fe5f529d877968c711a095923c1ed12307.tar.gz linux-584f53fe5f529d877968c711a095923c1ed12307.tar.bz2 linux-584f53fe5f529d877968c711a095923c1ed12307.zip |
scsi: hisi_sas: Fix the race between IO completion and timeout for SMP/internal IO
If SMP/internal IO times out, we will possibly free the task immediately.
However if the IO actually completes at the same time, the IO completion
may refer to task which has been freed.
So to solve the issue, flush the tasklet to finish IO completion before
free'ing slot/task.
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/gpio')
0 files changed, 0 insertions, 0 deletions