Commit 4b8cbbf6 authored by James Bottomley's avatar James Bottomley

SCSI: fix Suspend I/O block/unblock path

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: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent d74833b6
...@@ -1030,7 +1030,8 @@ static int scsi_prep_fn(struct request_queue *q, struct request *req) ...@@ -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)) { } else if (req->flags & (REQ_CMD | REQ_BLOCK_PC)) {
if(unlikely(specials_only)) { if(unlikely(specials_only)) {
if(specials_only == SDEV_QUIESCE) if(specials_only == SDEV_QUIESCE ||
specials_only == SDEV_BLOCK)
return BLKPREP_DEFER; return BLKPREP_DEFER;
printk(KERN_ERR "scsi%d (%d:%d): rejecting I/O to device being removed\n", printk(KERN_ERR "scsi%d (%d:%d): rejecting I/O to device being removed\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment