]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/scsi/scsi_ioctl.c
[SCSI] host state model update: replace old host bitmap state
[mv-sheeva.git] / drivers / scsi / scsi_ioctl.c
index 7a6b530115ac9dbe78e136dc7e7ba5568e015cf0..f5bf5c07be91ff81a0cacf6088619f81c41dcaaf 100644 (file)
@@ -475,8 +475,7 @@ int scsi_nonblockable_ioctl(struct scsi_device *sdev, int cmd,
         * error processing, as long as the device was opened
         * non-blocking */
        if (filp && filp->f_flags & O_NONBLOCK) {
-               if (test_bit(SHOST_RECOVERY,
-                            &sdev->host->shost_state))
+               if (sdev->host->shost_state == SHOST_RECOVERY)
                        return -ENODEV;
        } else if (!scsi_block_when_processing_errors(sdev))
                return -ENODEV;