Skip to content

Unblock SCSI devices even if the LLD is being unloaded

Bart Van Assche linux-scsi stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3__scsi_iterate_devices(): Make the get and put functions argumentsdrivers/scsi/scsi.c include/scsi/scsi_device.h+11 -80 replies
2/3Introduce starget_for_all_devices() and shost_for_all_devices()drivers/scsi/scsi.c include/scsi/scsi_device.h+69 -50 replies
3/3Ensure that scsi_target_unblock() examines all devicesdrivers/scsi/scsi_lib.c+19 -30 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchIsrael Rukshin
1/3T-b
2/3T-b
3/3T-b

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

Read the v1 thread

Cover letter [PATCH 0/3] Unblock SCSI devices even if the LLD is being unloaded

scsi_target_unblock() must unblock SCSI devices even if this function is called after unloading of the LLD that created these devices has started. This is necessary to prevent that __scsi_remove_device() hangs on the SYNCHRONIZE CACHE command issued by the sd driver during shutdown.

Bart Van Assche (3):
__scsi_iterate_devices(): Make the get and put functions arguments Introduce starget_for_all_devices() and shost_for_all_devices() Ensure that scsi_target_unblock() examines all devices

 drivers/scsi/scsi.c        | 60 +++++++++++++++++++++++++++++++++++++++++-----
 drivers/scsi/scsi_lib.c    | 22 ++++++++++++++---
 include/scsi/scsi_device.h | 29 ++++++++++++++++++----
 3 files changed, 97 insertions(+), 14 deletions(-)
Signature · 1 line
2.12.0