summaryrefslogtreecommitdiff
path: root/block/blk-merge.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-10-05 09:11:56 -0600
committerJens Axboe <axboe@kernel.dk>2021-10-18 06:17:03 -0600
commita7b36ee6ba299ffa5c3b36af187b4d0fb32a557c (patch)
tree0e3d6396029cf7b291aeb0b8daeba08f69a33f20 /block/blk-merge.c
parent079a2e3e862548087041a1873bbffceb41a72a33 (diff)
block: move blk-throtl fast path inline
Even if no policies are defined, we spend ~2% of the total IO time checking. Move the fast path inline. Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-merge.c')
-rw-r--r--block/blk-merge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-merge.c b/block/blk-merge.c
index 5b4f23014df8..bf7aedaad8f8 100644
--- a/block/blk-merge.c
+++ b/block/blk-merge.c
@@ -13,6 +13,7 @@
#include "blk.h"
#include "blk-rq-qos.h"
+#include "blk-throttle.h"
static inline bool bio_will_gap(struct request_queue *q,
struct request *prev_rq, struct bio *prev, struct bio *next)