summaryrefslogtreecommitdiffstats
path: root/include/linux/blk-mq.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-04-25 09:53:36 +0200
committerJens Axboe <axboe@kernel.dk>2020-04-25 09:45:44 -0600
commit8cf7961dab42c9177a556b719c15f5b9449c24d1 (patch)
treecf0e7e5d0b7f6f0ee665629b61fc91cc56ed77c7 /include/linux/blk-mq.h
parentae3cc8d8ff061d3ffca96665685550e70a86472a (diff)
downloadlinux-stable-8cf7961dab42c9177a556b719c15f5b9449c24d1.tar.gz
linux-stable-8cf7961dab42c9177a556b719c15f5b9449c24d1.tar.bz2
linux-stable-8cf7961dab42c9177a556b719c15f5b9449c24d1.zip
block: bypass ->make_request_fn for blk-mq drivers
Call blk_mq_make_request when no ->make_request_fn is set. This is safe now that blk_alloc_queue always sets up the pointer for make_request based drivers. This avoids an indirect call in the blk-mq driver I/O fast path, which is rather expensive due to spectre mitigations. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r--include/linux/blk-mq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index 51fbf6f76593..d7307795439a 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -578,4 +578,6 @@ static inline void blk_mq_cleanup_rq(struct request *rq)
rq->q->mq_ops->cleanup_rq(rq);
}
+blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio);
+
#endif