From 4b8cbbf6cf087c8389d601a841e73d07099a6367 Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Mon, 18 Oct 2004 05:43:05 -0500 Subject: [PATCH] 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: James Bottomley --- drivers/scsi/scsi_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 277dd7cc8ab97..b19ff1569e3bc 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -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", -- 2.53.0