diff options
author | Luo Jiaxing <[email protected]> | 2020-07-22 17:04:03 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-07-24 22:09:55 -0400 |
commit | 386533796574bcdfe25ef3b8c520bc5f3a9d7c89 (patch) | |
tree | a2d8d5ec4cf0329c98da7416da2b23a99f935523 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 3a243c2c35002f51ff1e62a4337cffe39b17f3d6 (diff) |
scsi: libsas: Check link status in ATA prereset()
libata currently attempts to reset even if the SATA disk is unplugged. To
avoid the meaningless reset of a missing disk, libsas should report offline
status to libata. libata already provides a .prereset callback for this
purpose. This is called by ata_eh_reset() and can be used to influence
whether a reset attempt should be made.
Add sas_ata_preset callback to check status of phy and disk. If the disk is
already offline or phy is disabled, we return -ENOENT to libata to avoid
the reset.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: John Garry <[email protected]>
Reviewed-by: Jason Yan <[email protected]>
Signed-off-by: Luo Jiaxing <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions