Commit e23ef4f
scsi: ufs: core: Fix error handler host_sem issue
Fix the issue where host_sem is not released due to a new return path in
commit f966e02 ("scsi: ufs: core: Fix runtime suspend error
deadlock").
Check pm_op_in_progress before acquiring hba->host_sem to prevent
deadlocks and ensure proper resource management during error
handling. Add comment for use ufshcd_rpm_get_noresume() to safely
perform link recovery without interfering with ongoing PM operations.
Fixes: f966e02 ("scsi: ufs: core: Fix runtime suspend error deadlock")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251008065651.1589614-2-peter.wang@mediatek.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent a0b7780 commit e23ef4f
1 file changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6673 | 6673 | | |
6674 | 6674 | | |
6675 | 6675 | | |
| 6676 | + | |
| 6677 | + | |
| 6678 | + | |
| 6679 | + | |
| 6680 | + | |
| 6681 | + | |
| 6682 | + | |
| 6683 | + | |
| 6684 | + | |
| 6685 | + | |
| 6686 | + | |
| 6687 | + | |
| 6688 | + | |
| 6689 | + | |
6676 | 6690 | | |
6677 | 6691 | | |
6678 | 6692 | | |
| |||
6684 | 6698 | | |
6685 | 6699 | | |
6686 | 6700 | | |
6687 | | - | |
6688 | | - | |
6689 | | - | |
6690 | | - | |
6691 | | - | |
6692 | | - | |
6693 | | - | |
6694 | | - | |
6695 | 6701 | | |
6696 | 6702 | | |
6697 | 6703 | | |
| |||
0 commit comments