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

File tree

1 file changed

+3
-1
lines changed
  • tools/testing/selftests/ublk

1 file changed

+3
-1
lines changed

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)