mbox series

[PATCHSET,0/2] Optimize get_current_ioprio() a bit

Message ID 20240108190113.1264200-1-axboe@kernel.dk (mailing list archive)
Headers show
Series Optimize get_current_ioprio() a bit | expand

Message

Jens Axboe Jan. 8, 2024, 6:59 p.m. UTC
Hi,

Came across this one in some recent profiling, and it's actually
quite grim:

+    2.71%  io_uring  [kernel.vmlinux]  [k] __get_task_ioprio                       ▒

Just do the easy thing and move it into the header so we avoid
a function call per IO for this. Patch 2 is just a general cleanup.