]> git.itanic.dy.fi Git - linux-stable/commit
block: move __get_task_ioprio() into header file
authorJens Axboe <axboe@kernel.dk>
Mon, 8 Jan 2024 18:50:16 +0000 (11:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Jan 2024 19:27:39 +0000 (12:27 -0700)
commit3b7cb745473aec7255d66e3854abaa9c3f46f952
tree900d7e95798bb1202b13838e3f1981f9127d87f3
parent587371ed783b046f22ba7a5e1cc9a19ae35123b4
block: move __get_task_ioprio() into header file

We call this once per IO, which can be millions of times per second.
Since nobody really uses io priorities, or at least it isn't very
common, this is all wasted time and can amount to as much as 3% of
the total kernel time.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/ioprio.c
include/linux/ioprio.h