Skip to content

scsi: libsas: Fix disk not being scanned in after being removed

Xingui Yang linux-scsi lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesNew
  2. v33 patches 6 repliesSuperseded
  3. v21 patch 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch16 repliesSuperseded

Changes in v4 from the cover letter

- Revert to allocating the resp memory with alloc_smp_resp().
- Optimize goto statement.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scsi: libsas: Add a helper sas_get_sas_addr_and_dev_type()drivers/scsi/libsas/sas_expander.c+12 -70 replies
2/2scsi: libsas: Fix disk not being scanned in after being removeddrivers/scsi/libsas/sas_expander.c+22 -100 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJohn Garry
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] scsi: libsas: Fix disk not being scanned in after being removed

This patch series fixes an issue when do discovery on an empty PHY to update PHY info after device unregister could cause newly connected device to not be scanned.

Changes since v3:
- Revert to allocating the resp memory with alloc_smp_resp().
- Optimize goto statement.

Changes since v2:
- Based on John's suggestion, allow smp_execute_task() arguments to be on the stack.
- Based on John's suggestion, add a helper sas_get_sas_addr_and_dev_type.
- Updated comments.

Changes since v1:
- Use sas_get_phy_discover() instead of sas_get_phy_attached_dev() in sas_rediscover_dev() and use disc_resp to update phy info.

Xingui Yang (2):
scsi: libsas: Add a helper sas_get_sas_addr_and_dev_type()
scsi: libsas: Fix disk not being scanned in after being removed

 drivers/scsi/libsas/sas_expander.c | 51 ++++++++++++++++++++----------
 1 file changed, 34 insertions(+), 17 deletions(-)
Signature · 1 line
2.17.1