diff options
| author | Qi Liu <[email protected]> | 2021-12-15 14:37:38 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-12-17 03:59:57 +0000 |
| commit | 20c634932ae8978435645b466c99b3fc1a80545a (patch) | |
| tree | 37f9f47a87c8ba5fde57256dbafc3bba64eaa182 /drivers/scsi/libsas/sas_init.c | |
| parent | scsi: hisi_sas: Factor out task prep and delivery code (diff) | |
| download | kernel-20c634932ae8978435645b466c99b3fc1a80545a.tar.gz kernel-20c634932ae8978435645b466c99b3fc1a80545a.zip | |
scsi: hisi_sas: Prevent parallel controller reset and control phy command
A user may issue a control phy command from sysfs at any time, even if the
controller is resetting.
If a phy is disabled by hardreset/linkreset command before calling
get_phys_state() in the reset path, the saved phy state may be incorrect.
To avoid incorrectly recording the phy state, use hisi_hba.sem to ensure
that the controller reset may not run at the same time as when the phy
control function is running.
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
