[SCSI] Add ability to scan scsi busses asynchronously
authorMatthew Wilcox <matthew@wil.cx>
Thu, 28 Sep 2006 21:19:20 +0000 (15:19 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 11 Oct 2006 18:44:25 +0000 (13:44 -0500)
commit3e082a910d217b2e7b186077ebf5a1126a68c62f
treeb4ef4152b8ad0198283e36c74c990f38d90d27b7
parent53a5fbdc2dff55161a206ed1a1385a8fa8055c34
[SCSI] Add ability to scan scsi busses asynchronously

Since it often takes around 20-30 seconds to scan a scsi bus, it's
highly advantageous to do this in parallel with other things.  The bulk
of this patch is ensuring that devices don't change numbering, and that
all devices are discovered prior to trying to start init.  For those
who build SCSI as modules, there's a new scsi_wait_scan module that will
ensure all bus scans are finished.

This patch only handles drivers which call scsi_scan_host.  Fibre Channel,
SAS, SATA, USB and Firewire all need additional work.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Documentation/kernel-parameters.txt
drivers/scsi/Makefile
drivers/scsi/scsi_priv.h
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_wait_scan.c [new file with mode: 0644]
include/scsi/scsi_device.h
include/scsi/scsi_host.h