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>
This commit is contained in:
Jens Axboe
2021-10-05 09:11:56 -06:00
parent 079a2e3e86
commit a7b36ee6ba
7 changed files with 189 additions and 174 deletions

View File

@@ -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)