diff options
Diffstat (limited to 'block/blk-exec.c')
-rw-r--r-- | block/blk-exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-exec.c b/block/blk-exec.c index e70621396129..ae4f27d7944e 100644 --- a/block/blk-exec.c +++ b/block/blk-exec.c | |||
@@ -68,9 +68,9 @@ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk, | |||
68 | spin_lock_irq(q->queue_lock); | 68 | spin_lock_irq(q->queue_lock); |
69 | 69 | ||
70 | if (unlikely(blk_queue_dying(q))) { | 70 | if (unlikely(blk_queue_dying(q))) { |
71 | rq->cmd_flags |= REQ_QUIET; | ||
71 | rq->errors = -ENXIO; | 72 | rq->errors = -ENXIO; |
72 | if (rq->end_io) | 73 | __blk_end_request_all(rq, rq->errors); |
73 | rq->end_io(rq, rq->errors); | ||
74 | spin_unlock_irq(q->queue_lock); | 74 | spin_unlock_irq(q->queue_lock); |
75 | return; | 75 | return; |
76 | } | 76 | } |