diff options
author | 2009-01-13 16:50:37 +0100 | |
---|---|---|
committer | 2009-01-13 10:48:11 -0600 | |
commit | 32aeef605aa01e1fee45e052eceffb00e72ba2b0 (patch) | |
tree | 7ad435682378ff585b1205a5a9ce5d6124c8284a /include/linux/kernel.h | |
parent | [SCSI] Add SUN Universal Xport to no attach blacklist (diff) | |
download | wireguard-linux-32aeef605aa01e1fee45e052eceffb00e72ba2b0.tar.xz wireguard-linux-32aeef605aa01e1fee45e052eceffb00e72ba2b0.zip |
[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 <hare@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions