From db74ec198695ba269bbcf2e7a72e71aa33710d53 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Mon, 12 Jan 2009 09:28:55 +0100 Subject: [PATCH] --- yaml --- r: 136222 b: refs/heads/master c: 0762a4824d6c6f8eb5d2646dfda95581d99afaa5 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/scsi/scsi_device.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index abddd910d8ec..83946ef864e6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 71fa7421822a251fc3e9ffb54653395b6b964309 +refs/heads/master: 0762a4824d6c6f8eb5d2646dfda95581d99afaa5 diff --git a/trunk/include/scsi/scsi_device.h b/trunk/include/scsi/scsi_device.h index 9576690901dd..15b09266b7ff 100644 --- a/trunk/include/scsi/scsi_device.h +++ b/trunk/include/scsi/scsi_device.h @@ -401,7 +401,8 @@ static inline unsigned int sdev_id(struct scsi_device *sdev) */ static inline int scsi_device_online(struct scsi_device *sdev) { - return sdev->sdev_state != SDEV_OFFLINE; + return (sdev->sdev_state != SDEV_OFFLINE && + sdev->sdev_state != SDEV_DEL); } static inline int scsi_device_blocked(struct scsi_device *sdev) {