t/io_uring: restore usage of IORING_SETUP_IOPOLL
authorJens Axboe <axboe@kernel.dk>
Fri, 11 Jan 2019 02:10:03 +0000 (19:10 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jan 2019 02:10:03 +0000 (19:10 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c

index 12591c97fd905cf09e973b8915cb59762ffd3823..39332c8e6cdc09df0e7ae769bec86059ee6c8a12 100644 (file)
@@ -324,6 +324,8 @@ static int setup_ring(struct submitter *s)
 
        memset(&p, 0, sizeof(p));
 
+       if (polled)
+               p.flags |= IORING_SETUP_IOPOLL;
        if (sq_thread_poll) {
                p.flags |= IORING_SETUP_SQPOLL;
                if (sq_thread_cpu != -1)