aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-exec.c')
-rw-r--r--block/blk-exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-exec.c b/block/blk-exec.c
index f71eac35c1b..74638ec234c 100644
--- a/block/blk-exec.c
+++ b/block/blk-exec.c
@@ -66,7 +66,7 @@ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk,
66 66
67 spin_lock_irq(q->queue_lock); 67 spin_lock_irq(q->queue_lock);
68 68
69 if (unlikely(blk_queue_dead(q))) { 69 if (unlikely(blk_queue_dying(q))) {
70 rq->errors = -ENXIO; 70 rq->errors = -ENXIO;
71 if (rq->end_io) 71 if (rq->end_io)
72 rq->end_io(rq, rq->errors); 72 rq->end_io(rq, rq->errors);
@@ -78,7 +78,7 @@ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk,
78 __blk_run_queue(q); 78 __blk_run_queue(q);
79 /* the queue is stopped so it won't be run */ 79 /* the queue is stopped so it won't be run */
80 if (is_pm_resume) 80 if (is_pm_resume)
81 q->request_fn(q); 81 __blk_run_queue_uncond(q);
82 spin_unlock_irq(q->queue_lock); 82 spin_unlock_irq(q->queue_lock);
83} 83}
84EXPORT_SYMBOL_GPL(blk_execute_rq_nowait); 84EXPORT_SYMBOL_GPL(blk_execute_rq_nowait);