]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] fix missing check for no scanning
authorMatthew Wilcox <matthew@wil.cx>
Wed, 22 Nov 2006 20:24:53 +0000 (13:24 -0700)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 22 Nov 2006 22:41:52 +0000 (16:41 -0600)
Drivers that called scsi_scan_target() instead of scsi_scan_host() were
still adding devices; this needs to be under the control of userspace,
not the driver.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_scan.c

index d91d268dd331d0eb8ecea5e0423406a96f8a2439..3ccaa4be92d83cd1f165db3888ff170c8012e17c 100644 (file)
@@ -1549,6 +1549,9 @@ void scsi_scan_target(struct device *parent, unsigned int channel,
 {
        struct Scsi_Host *shost = dev_to_shost(parent);
 
+       if (strncmp(scsi_scan_type, "none", 4) == 0)
+               return;
+
        if (!shost->async_scan)
                scsi_complete_async_scans();