diff options
| author | Qi Liu <[email protected]> | 2021-12-15 14:37:40 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-12-17 03:59:58 +0000 |
| commit | 37310bad7fa645b21653fd7f13cb6b376d80c919 (patch) | |
| tree | 774f660e0d8d6cebe29a100f126cc2b944e8d962 /drivers/scsi/libsas/sas_init.c | |
| parent | scsi: hisi_sas: Prevent parallel FLR and controller reset (diff) | |
| download | kernel-37310bad7fa645b21653fd7f13cb6b376d80c919.tar.gz kernel-37310bad7fa645b21653fd7f13cb6b376d80c919.zip | |
scsi: hisi_sas: Fix phyup timeout on FPGA
The OOB interrupt and phyup interrupt handlers may run out-of-order in high
CPU usage scenarios. Since the hisi_sas_phy.timer is added in
hisi_sas_phy_oob_ready() and disarmed in phy_up_v3_hw(), this out-of-order
execution will cause hisi_sas_phy.timer timeout to trigger.
To solve, protect hisi_sas_phy.timer and .attached with a lock, and ensure
that the timer won't be added after phyup handler completes.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Qi Liu <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
0 files changed, 0 insertions, 0 deletions
