From: James Smart Date: Tue, 27 Jan 2009 16:41:36 +0000 (-0500) Subject: [SCSI] scsi_scan: add missing interim SDEV_DEL state if slave_alloc fails X-Git-Tag: v2.6.29-rc6~18^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2f9e49f9bbfa2e111ab1e1628b96b560bae7cec;p=pandora-kernel.git [SCSI] scsi_scan: add missing interim SDEV_DEL state if slave_alloc fails We were running i/o and performing a bunch of hba resets in a loop. This forces a lot of target removes and then rescans. Since the resets are occuring during scan it's causing the scan i/o to timeout, invoking error recovery, etc. We end up getting some nasty crashing in scsi_scan.c due to references to old sdevs that are failing but had some lingering references that kept them around. Fix by setting device state to SDEV_DEL if the LLD's slave_alloc fails. Signed-off-by: James Smart Signed-off-by: James Bottomley --- Reading git-diff-tree failed