Commit ee36710
scsi: ufs: core: Remove the ufshcd_hba_exit() call from ufshcd_async_scan()
Calling ufshcd_hba_exit() from a function that is called asynchronously
from ufshcd_init() is wrong because this triggers multiple race
conditions. Instead of calling ufshcd_hba_exit(), log an error message.
Reported-by: Daniel Mentz <danielmentz@google.com>
Fixes: 1d337ec ("ufs: improve init sequence")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20231218225229.2542156-3-bvanassche@acm.org
Reviewed-by: Can Guo <quic_cang@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent daf7795 commit ee36710
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8982 | 8982 | | |
8983 | 8983 | | |
8984 | 8984 | | |
8985 | | - | |
8986 | | - | |
8987 | | - | |
8988 | | - | |
| 8985 | + | |
8989 | 8986 | | |
8990 | | - | |
| 8987 | + | |
8991 | 8988 | | |
8992 | 8989 | | |
8993 | 8990 | | |
| |||
0 commit comments