]> www.infradead.org Git - nvme.git/commit
block: blk-rq-qos: guard rq-qos helpers by static key
authorJens Axboe <axboe@kernel.dk>
Tue, 15 Apr 2025 14:49:35 +0000 (08:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Apr 2025 11:07:03 +0000 (05:07 -0600)
commit033b667a823ee403509e7156bc7fa335bd566bff
tree6df54413a1591ad1873e317540c09c23bae785f0
parent9b79f86e06283bad016df3dca0f2d4fd2a2c690c
block: blk-rq-qos: guard rq-qos helpers by static key

Even if blk-rq-qos isn't used or configured, dipping into the queue to
fetch ->rq_qos is a noticeable slowdown and visible in profiles. Add an
unlikely static key around blk-rq-qos, to avoid fetching this cacheline
if blk-iolatency or blk-wbt isn't configured or used.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-rq-qos.c
block/blk-rq-qos.h