]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: pass ublk_device to ublk_register_io_buf()
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 18 Sep 2025 01:49:43 +0000 (19:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 Sep 2025 12:36:27 +0000 (06:36 -0600)
commit8a81926e45670c6d9b6e73e0482485d5c9a627e6
tree4cb81362b56dfbad20245119ff64f0368b079efc
parentb40dcdf8235d536072b9f61eb6d291f0f3720768
ublk: pass ublk_device to ublk_register_io_buf()

Avoid repeating the 2 dereferences to get the ublk_device from the
io_uring_cmd by passing it from ublk_ch_uring_cmd_local() to
ublk_register_io_buf().

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