]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ublk: store req in ublk_uring_cmd_pdu for ublk_cmd_tw_cb()
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 28 Mar 2025 18:04:11 +0000 (12:04 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Mar 2025 22:15:43 +0000 (16:15 -0600)
commit00cfc05cf81f58b1bc2650e18228350a094b1f6d
tree58d685d2bcde8a406dba277a854f1f1f13b403b7
parent108d8aecaeeb52f5fbe98ac94da534954db1da44
ublk: store req in ublk_uring_cmd_pdu for ublk_cmd_tw_cb()

Pass struct request *rq to ublk_cmd_tw_cb() through ublk_uring_cmd_pdu,
mirroring how it works for ublk_cmd_list_tw_cb(). This saves some
pointer dereferences, as well as the bounds check in blk_mq_tag_to_rq().

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250328180411.2696494-6-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c