aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorXiaofei Tan <[email protected]>2018-05-31 20:50:44 +0800
committerMartin K. Petersen <[email protected]>2018-06-19 22:02:25 -0400
commitd2fc401e47529d9ffd2673a5395d56002e31ad98 (patch)
tree056e3e902949753f3285df6b1e6ab14e1c445716 /tools/perf/scripts/python
parent1324ae1ce55927622b531cc3123387c0fe05244d (diff)
scsi: hisi_sas: Fix the conflict between dev gone and host reset
There is a possible conflict when a device is removed and host reset occurs concurrently. The reason is that then the device is notified as gone, we try to clear the ITCT, which is notified via an interrupt. The dev gone function pends on this event with a completion, which is completed when the ITCT interrupt occurs. But host reset will disable all interrupts, the wait_for_completion() may wait indefinitely. This patch adds an semaphore to synchronise this two processes. The semaphore is taken by the host reset as the basis of synchronising. Signed-off-by: Xiaofei Tan <[email protected]> Signed-off-by: John Garry <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions