From: Matthew Wilcox Date: Tue, 16 Jan 2007 01:07:09 +0000 (-0700) Subject: [SCSI] Fix scsi_add_device() for async scanning X-Git-Tag: v2.6.20~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=938e2ac0b7ac72d264783b0b548eb6078c295294;p=pandora-kernel.git [SCSI] Fix scsi_add_device() for async scanning I had thought that all drivers which didn't call scsi_scan_host() called scsi_scan_target(). Some, such as sbp2, mptsas and libata-scsi, call scsi_add_device() or __scsi_add_device(). We just need to wait for the currently executing async scans to complete first. This is the same code that's in scsi_scan_target(), except that we have to return an error instead of void when we're declining to scan at all. Signed-off-by: Matthew Wilcox Signed-off-by: James Bottomley --- Reading git-diff-tree failed