From a7b36ee6ba299ffa5c3b36af187b4d0fb32a557c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 5 Oct 2021 09:11:56 -0600 Subject: 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 Signed-off-by: Jens Axboe --- block/blk-merge.c | 1 + 1 file changed, 1 insertion(+) (limited to 'block/blk-merge.c') 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) -- cgit v1.2.3-73-gaa49b