Skip to content

Commit 62867a0

Browse files
Ming Leiaxboe
authored andcommitted
selftests: ublk: setup ring with IORING_SETUP_SINGLE_ISSUER/IORING_SETUP_DEFER_TASKRUN
It is observed that this way is more efficient for fast nvme backing file. Signed-off-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20250412023035.2649275-8-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent d836590 commit 62867a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • tools/testing/selftests/ublk

tools/testing/selftests/ublk/kublk.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ static int ublk_queue_init(struct ublk_queue *q)
346346
}
347347

348348
ret = ublk_setup_ring(&q->ring, ring_depth, cq_depth,
349-
IORING_SETUP_COOP_TASKRUN);
349+
IORING_SETUP_COOP_TASKRUN |
350+
IORING_SETUP_SINGLE_ISSUER |
351+
IORING_SETUP_DEFER_TASKRUN);
350352
if (ret < 0) {
351353
ublk_err("ublk dev %d queue %d setup io_uring failed %d\n",
352354
q->dev->dev_info.dev_id, q->q_id, ret);

0 commit comments

Comments
 (0)