diff options
author | Qi Liu <liuqi115@huawei.com> | 2021-12-15 22:37:38 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-12-16 22:59:57 -0500 |
commit | 20c634932ae8978435645b466c99b3fc1a80545a (patch) | |
tree | 37f9f47a87c8ba5fde57256dbafc3bba64eaa182 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dc313f6b125b095d3d2683d94d5f69c8dc9bdc36 (diff) |
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/1639579061-179473-6-git-send-email-john.garry@huawei.com
Signed-off-by: Qi Liu <liuqi115@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions