diff options
Diffstat (limited to 'include/scsi/scsi_device.h')
-rw-r--r-- | include/scsi/scsi_device.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 9576690901dd..15b09266b7ff 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -401,7 +401,8 @@ static inline unsigned int sdev_id(struct scsi_device *sdev) | |||
401 | */ | 401 | */ |
402 | static inline int scsi_device_online(struct scsi_device *sdev) | 402 | static inline int scsi_device_online(struct scsi_device *sdev) |
403 | { | 403 | { |
404 | return sdev->sdev_state != SDEV_OFFLINE; | 404 | return (sdev->sdev_state != SDEV_OFFLINE && |
405 | sdev->sdev_state != SDEV_DEL); | ||
405 | } | 406 | } |
406 | static inline int scsi_device_blocked(struct scsi_device *sdev) | 407 | static inline int scsi_device_blocked(struct scsi_device *sdev) |
407 | { | 408 | { |