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

Obtain the ublk device flags from ublk_device to avoid needing to access
the ublk_queue, which may be a cache miss.

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