diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-10-05 18:11:56 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-18 15:17:03 +0300 |
commit | a7b36ee6ba299ffa5c3b36af187b4d0fb32a557c (patch) | |
tree | 0e3d6396029cf7b291aeb0b8daeba08f69a33f20 /block/blk-sysfs.c | |
parent | 079a2e3e862548087041a1873bbffceb41a72a33 (diff) | |
download | linux-a7b36ee6ba299ffa5c3b36af187b4d0fb32a557c.tar.xz |
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-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 614d9d47de36..da883efcba33 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -17,6 +17,7 @@ #include "blk-mq.h" #include "blk-mq-debugfs.h" #include "blk-wbt.h" +#include "blk-throttle.h" struct queue_sysfs_entry { struct attribute attr; |