Skip to content

libsas eh reworks: new + regression fixes

Dan Williams linux-ide linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest7 patches 3 repliesIn review

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7libsas: mark all domain devices gone if root port disappearsdrivers/scsi/libsas/sas_discover.c drivers/scsi/libsas/sas_port.c include/scsi/libsas.h+8 -60 replies
2/7libsas: close scsi_remove_target() vs libata-eh racedrivers/scsi/libsas/sas_ata.c drivers/scsi/libsas/sas_discover.c drivers/scsi/libsas/sas_scsi_host.c+10 -30 replies
3/7libsas: fix mixed topology recoverydrivers/scsi/libsas/sas_ata.c drivers/scsi/libsas/sas_scsi_host.c include/scsi/sas_ata.h+13 -170 replies
4/7libsas: route local link resets through ata-ehdrivers/scsi/libsas/sas_host_smp.c drivers/scsi/libsas/sas_init.c drivers/scsi/libsas/sas_internal.h+37 -200 replies
5/7libsas: fix sas_unregister_ports vs sas_drain_workdrivers/scsi/libsas/sas_init.c+6 -21 reply
6/7libsas: kill spurious sas_put_devicedrivers/scsi/libsas/sas_discover.c+0 -20 replies
7/7libsas: let libata recover links that fail to transmit initial sig-fisdrivers/scsi/libsas/sas_ata.c drivers/scsi/libsas/sas_discover.c drivers/scsi/libsas/sas_expander.c +3 more+136 -792 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/7] libsas eh reworks: new + regression fixes

The following are incremental to v4: http://marc.info/?l=linux-scsi&m=132618126007864&w=2

1/ patch 1, 2, 3, 4 new fixes to clean up eh vs device remove 2/ patch 5 regression fix for the sas_drain_work implementation 3/ patch 6 regression fix for domain_device reference counting 4/ patch 7 RFC implementation for hardening sata device discovery.

Patch 7 is still undergoing test, but looking for feedback from other libsas users, particularly Jack, about the approach and whether it addresses the sata discovery problems that have been discussed on the list.

[PATCH 1/7] libsas: mark all domain devices gone if root port disappears [PATCH 2/7] libsas: close scsi_remove_target() vs libata-eh race
[PATCH 3/7] libsas: fix mixed topology recovery
[PATCH 4/7] libsas: route local link resets through ata-eh
[PATCH 5/7] libsas: fix sas_unregister_ports vs sas_drain_work
[PATCH 6/7] libsas: kill spurious sas_put_device
[RFC PATCH 7/7] libsas: let libata recover links that fail to transmit initial sig-fis

 drivers/scsi/libsas/sas_ata.c       |   84 ++++++++++++++++++++----
 drivers/scsi/libsas/sas_discover.c  |   16 +++-
 drivers/scsi/libsas/sas_expander.c  |  125 ++++++++++++++++-------------------
 drivers/scsi/libsas/sas_host_smp.c  |   11 +++
 drivers/scsi/libsas/sas_init.c      |   53 +++++++++------
 drivers/scsi/libsas/sas_internal.h  |    7 +-
 drivers/scsi/libsas/sas_port.c      |    4 -
 drivers/scsi/libsas/sas_scsi_host.c |   16 ++--
 include/scsi/libsas.h               |    2 -
 include/scsi/sas.h                  |    4 +
 include/scsi/sas_ata.h              |   17 +++--
 11 files changed, 210 insertions(+), 129 deletions(-)