summaryrefslogtreecommitdiff
path: root/block/blk-exec.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2014-02-20 15:32:37 -0800
committerJens Axboe <axboe@fb.com>2014-02-21 08:58:48 -0800
commitfeb71dae1f9e0aeb056f7f639a21e620d327fc66 (patch)
tree66097b2fa7e34c826421eb345496d890a6d88ade /block/blk-exec.c
parentfd694131bb033e7b1fd748498cd9a70e9c16420b (diff)
downloadlwn-feb71dae1f9e0aeb056f7f639a21e620d327fc66.tar.gz
lwn-feb71dae1f9e0aeb056f7f639a21e620d327fc66.zip
blk-mq: merge blk_mq_insert_request and blk_mq_run_request
It's almost identical to blk_mq_insert_request, so fold the two into one slightly more generic function by making the flush special case a bit smarted. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-exec.c')
-rw-r--r--block/blk-exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-exec.c b/block/blk-exec.c
index c68613bb4c79..dbf4502b1d67 100644
--- a/block/blk-exec.c
+++ b/block/blk-exec.c
@@ -65,7 +65,7 @@ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk,
* be resued after dying flag is set
*/
if (q->mq_ops) {
- blk_mq_insert_request(q, rq, at_head, true);
+ blk_mq_insert_request(rq, at_head, true, false);
return;
}