]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: don't dereference ublk_queue in ublk_ch_uring_cmd_local()
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 18 Sep 2025 01:49:41 +0000 (19:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 Sep 2025 12:36:27 +0000 (06:36 -0600)
commit5125535f90564117506d926d0de92c4c2622b720
treec269252f9530eba99085799142e898585e69b141
parentd74a383ec70de33ae6577af889556747d6693269
ublk: don't dereference ublk_queue in ublk_ch_uring_cmd_local()

For ublk servers with many ublk queues, accessing the ublk_queue to
handle a ublk command is a frequent cache miss. Get the queue depth from
the ublk_device instead, which is accessed just before.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c