]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/scsi/sg.c
[SCSI] host state model update: replace old host bitmap state
[mv-sheeva.git] / drivers / scsi / sg.c
index 51292f269ce52c0fb034d6e77485b532adcb217b..14fb179b3842193dceacd206b1b22d23d54a324f 100644 (file)
@@ -1027,8 +1027,7 @@ sg_ioctl(struct inode *inode, struct file *filp,
                if (sdp->detached)
                        return -ENODEV;
                if (filp->f_flags & O_NONBLOCK) {
-                       if (test_bit(SHOST_RECOVERY,
-                                    &sdp->device->host->shost_state))
+                       if (sdp->device->host->shost_state == SHOST_RECOVERY)
                                return -EBUSY;
                } else if (!scsi_block_when_processing_errors(sdp->device))
                        return -EBUSY;