From 3ade18a3e69e5626f57560566b8f94cd2ad46ce4 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 11 Jan 2019 11:38:29 -0700 Subject: [PATCH] t/io_uring: remember to set p->sq_thread_cpu Signed-off-by: Jens Axboe --- t/io_uring.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/io_uring.c b/t/io_uring.c index 0c8058ba..595e6f20 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -386,8 +386,10 @@ static int setup_ring(struct submitter *s) p.flags |= IORING_SETUP_IOPOLL; if (sq_thread_poll) { p.flags |= IORING_SETUP_SQPOLL; - if (sq_thread_cpu != -1) + if (sq_thread_cpu != -1) { p.flags |= IORING_SETUP_SQ_AFF; + p.sq_thread_cpu = sq_thread_cpu; + } } fd = io_uring_setup(DEPTH, &p); -- 2.25.1