]> git.karo-electronics.de Git - linux-beck.git/commit
scsi: disable automatic target scan
authorHannes Reinecke <hare@suse.de>
Thu, 17 Mar 2016 07:39:45 +0000 (08:39 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 11 Apr 2016 20:57:09 +0000 (16:57 -0400)
commit1d64508810d8d15867251c75a68d7250278ce2bd
treea7f43abdbf163aad5545eeea1d3b840c4adb2954
parent216fad91387aab7c9e69fe0854d843f012968748
scsi: disable automatic target scan

On larger installations it is useful to disable automatic LUN scanning,
and only add the required LUNs via udev rules.  This can speed up bootup
dramatically.

This patch introduces a new scan module parameter value 'manual', which
works like 'none', but can be overridden by setting the 'rescan' value
from scsi_scan_target to 'SCSI_SCAN_MANUAL'.  And it updates all
relevant callers to set the 'rescan' value to 'SCSI_SCAN_MANUAL' if
invoked via the 'scan' option in sysfs.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
12 files changed:
drivers/infiniband/ulp/srp/ib_srp.c
drivers/message/fusion/mptspi.c
drivers/s390/scsi/zfcp_unit.c
drivers/scsi/scsi_priv.h
drivers/scsi/scsi_proc.c
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_sysfs.c
drivers/scsi/scsi_transport_fc.c
drivers/scsi/scsi_transport_iscsi.c
drivers/scsi/scsi_transport_sas.c
drivers/scsi/snic/snic_disc.c
include/scsi/scsi_device.h