Skip to content

scsi_transport_fc: LUN masking

Hannes Reinecke linux-scsi 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/22 patches 13 repliesIn review
  2. v1 posting 1/22 patches 6 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scsi_transport_fc: implement 'disable_target_scan' module parameterdrivers/scsi/scsi_transport_fc.c+17 -15 replies
2/2scsi_transport_fc: Implement 'async_user_scan' module parameterdrivers/scsi/scsi_transport_fc.c+27 -23 replies

Reviews trailers per patch

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

PatchShane SeymourJohannes Thumshirn
1/2R-b
2/2R-b R-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/2][RESEND] scsi_transport_fc: LUN masking

Hi all,

having been subjected to the pain of trying to bootstrap a really large machine with systemd I decided to implement LUN masking in scsi_transport_fc.
The principle is simple: disallow the automated LUN scanning when discovering a rport, and create udev rules which selectively enable individual LUNs by echoing the relevant values in the 'scan' attribute of the SCSI host.
With that I'm able to boot an arbitrary large machine without running into any udev or systemd imposed timeout.
To _disable_ LUN masking and restoring the original behaviour I've noticed that the 'scan' sysfs attribute is actually synchronous, ie the calling process will be blocked until the entire LUN scan is completed.
So I've added another module parameter 'async_user_scan' to move the scanning onto the existing scan workqueue, and unblock the calling process.

As usual, comments and reviews are welcome.

Hannes Reinecke (2):
scsi_transport_fc: implement 'disable_target_scan' module parameter
scsi_transport_fc: Implement 'async_user_scan' module parameter

 drivers/scsi/scsi_transport_fc.c | 47 +++++++++++++++++++++++++++++++++++++---
 1 file changed, 44 insertions(+), 3 deletions(-)
Signature · 1 line
2.6.2