[SCSI] Check for deleted device in scsi_device_online()
authorHannes Reinecke <hare@suse.de>
Mon, 12 Jan 2009 08:28:55 +0000 (09:28 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 12 Mar 2009 17:57:56 +0000 (12:57 -0500)
commit0762a4824d6c6f8eb5d2646dfda95581d99afaa5
treedcf60e311f6ead5f706fa8956c5c7cfcee12c93f
parent71fa7421822a251fc3e9ffb54653395b6b964309
[SCSI] Check for deleted device in scsi_device_online()

scsi_device_online() is not just a negation of SDEV_OFFLINE,
also devices in state SDEV_DEL are actually offline.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
include/scsi/scsi_device.h