aboutsummaryrefslogtreecommitdiffstats
path: root/block/ll_rw_blk.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r--block/ll_rw_blk.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index b836b43113da..7fc903b5f3cd 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -2477,10 +2477,12 @@ void blk_execute_rq_nowait(request_queue_t *q, struct gendisk *bd_disk,
2477 rq->rq_disk = bd_disk; 2477 rq->rq_disk = bd_disk;
2478 rq->flags |= REQ_NOMERGE; 2478 rq->flags |= REQ_NOMERGE;
2479 rq->end_io = done; 2479 rq->end_io = done;
2480 elv_add_request(q, rq, where, 1); 2480 WARN_ON(irqs_disabled());
2481 generic_unplug_device(q); 2481 spin_lock_irq(q->queue_lock);
2482 __elv_add_request(q, rq, where, 1);
2483 __generic_unplug_device(q);
2484 spin_unlock_irq(q->queue_lock);
2482} 2485}
2483
2484EXPORT_SYMBOL_GPL(blk_execute_rq_nowait); 2486EXPORT_SYMBOL_GPL(blk_execute_rq_nowait);
2485 2487
2486/** 2488/**