diff options
author | Jaegeuk Kim <[email protected]> | 2021-01-07 10:53:15 -0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-01-07 22:50:48 -0500 |
commit | 4ee7ee530bc2bae6268247988d86722c65d02a37 (patch) | |
tree | 72ecc304617175e95a1ab2c573a8854c080f4cc6 /tools/perf/scripts/python/libxed.py | |
parent | 901d01c8e50c35a182073219a38b9c6391e59144 (diff) |
scsi: ufs: Fix livelock of ufshcd_clear_ua_wluns()
When gate_work/ungate_work experience an error during hibern8_enter or exit
we can livelock:
ufshcd_err_handler()
ufshcd_scsi_block_requests()
ufshcd_reset_and_restore()
ufshcd_clear_ua_wluns() -> stuck
ufshcd_scsi_unblock_requests()
In order to avoid this, ufshcd_clear_ua_wluns() can be called per recovery
flows such as suspend/resume, link_recovery, and error_handler.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 1918651f2d7e ("scsi: ufs: Clear UAC for RPMB after ufshcd resets")
Reviewed-by: Can Guo <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions