Skip to content

Commit 6a87fc4

Browse files
calebsanderaxboe
authored andcommitted
ublk: get ubq from pdu in ublk_cmd_list_tw_cb()
Save a few pointer dereferences by obtaining struct ublk_queue *ubq from the ublk_uring_cmd_pdu instead of the request's mq_hctx. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Link: https://lore.kernel.org/r/20250328180411.2696494-4-csander@purestorage.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 9d7fa99 commit 6a87fc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/block/ublk_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ static void ublk_cmd_list_tw_cb(struct io_uring_cmd *cmd,
12871287
{
12881288
struct ublk_uring_cmd_pdu *pdu = ublk_get_uring_cmd_pdu(cmd);
12891289
struct request *rq = pdu->req_list;
1290-
struct ublk_queue *ubq = rq->mq_hctx->driver_data;
1290+
struct ublk_queue *ubq = pdu->ubq;
12911291
struct request *next;
12921292

12931293
do {

0 commit comments

Comments
 (0)