Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136222
b: refs/heads/master
c: 0762a48
h: refs/heads/master
v: v3
  • Loading branch information
Hannes Reinecke authored and James Bottomley committed Mar 12, 2009
1 parent 34e4801 commit db74ec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71fa7421822a251fc3e9ffb54653395b6b964309
refs/heads/master: 0762a4824d6c6f8eb5d2646dfda95581d99afaa5
3 changes: 2 additions & 1 deletion trunk/include/scsi/scsi_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit db74ec1

Please sign in to comment.