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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 9d7fa99 commit 6a87fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)