diff options
| author | Adrian Hunter <[email protected]> | 2021-10-08 11:40:48 +0300 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-10-12 13:53:18 -0400 |
| commit | d489f18ad1fc33ab9b60dc40fe3851bb0d87de28 (patch) | |
| tree | e684b5afb96f38e62adf346cf0149aa5707a8082 /tools/perf/scripts/python/flamegraph.py | |
| parent | 9561f58442e48c3c71da250aa63bd02ec6bffcb5 (diff) | |
scsi: ufs: core: Fix synchronization between scsi_unjam_host() and ufshcd_queuecommand()
The SCSI error handler calls scsi_unjam_host() which can call the queue
function ufshcd_queuecommand() indirectly. The error handler changes the
state to UFSHCD_STATE_RESET while running, but error interrupts that
happen while the error handler is running could change the state to
UFSHCD_STATE_EH_SCHEDULED_NON_FATAL which would allow requests to go
through ufshcd_queuecommand() even though the error handler is running.
Block that hole by checking whether the error handler is in progress.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Asutosh Das <[email protected]>
Signed-off-by: Adrian Hunter <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions