From: Hannes Reinecke Date: Tue, 13 Jan 2009 15:50:37 +0000 (+0100) Subject: [SCSI] Skip deleted devices in __scsi_device_lookup_by_target() X-Git-Tag: v2.6.29-rc2~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32aeef605aa01e1fee45e052eceffb00e72ba2b0;p=pandora-kernel.git [SCSI] Skip deleted devices in __scsi_device_lookup_by_target() __scsi_device_lookup_by_target() will always return the first sdev with a matching LUN, regardless of the state. However, when this sdev is in SDEV_DEL scsi_device_lookup_by_target() will ignore this device and so any valid device on the list after the deleted device will never be found. So we have to modify __scsi_device_lookup_by_target() to skip any device in SDEV_DEL. Signed-off-by: Hannes Reinecke Signed-off-by: James Bottomley --- Reading git-diff-tree failed