]> git.hungrycats.org Git - linux/commitdiff
SCSI: fix Suspend I/O block/unblock path
authorJames Bottomley <jejb@titanic.il.steeleye.com>
Mon, 18 Oct 2004 10:43:05 +0000 (05:43 -0500)
committerJames Bottomley <jejb@titanic.il.steeleye.com>
Mon, 18 Oct 2004 10:43:05 +0000 (05:43 -0500)
From: James.Smart@Emulex.Com

urther testing is showing that we are having some i/o threads
prematurely die with the following message: "rejecting I/O to device
being removed"

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c

index 277dd7cc8ab97b072654fadd633d00e3439922bb..b19ff1569e3bc5089a7968f56eb4bd7686e24f57 100644 (file)
@@ -1030,7 +1030,8 @@ static int scsi_prep_fn(struct request_queue *q, struct request *req)
        } else if (req->flags & (REQ_CMD | REQ_BLOCK_PC)) {
 
                if(unlikely(specials_only)) {
-                       if(specials_only == SDEV_QUIESCE)
+                       if(specials_only == SDEV_QUIESCE ||
+                                       specials_only == SDEV_BLOCK)
                                return BLKPREP_DEFER;
                        
                        printk(KERN_ERR "scsi%d (%d:%d): rejecting I/O to device being removed\n",