io_uring: ensure we use the right argument syscall
authorJens Axboe <axboe@kernel.dk>
Tue, 29 Jan 2019 19:20:02 +0000 (12:20 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Jan 2019 19:20:02 +0000 (12:20 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c
t/io_uring.c

index 5279b1d..014f954 100644 (file)
@@ -132,7 +132,7 @@ static int io_uring_enter(struct ioring_data *ld, unsigned int to_submit,
                         unsigned int min_complete, unsigned int flags)
 {
        return syscall(__NR_sys_io_uring_enter, ld->ring_fd, to_submit,
-                       min_complete, flags);
+                       min_complete, flags, NULL, 0);
 }
 
 static int fio_ioring_prep(struct thread_data *td, struct io_u *io_u)
index 3bcb19b..62b48e4 100644 (file)
@@ -129,7 +129,7 @@ static int io_uring_enter(struct submitter *s, unsigned int to_submit,
                          unsigned int min_complete, unsigned int flags)
 {
        return syscall(__NR_sys_io_uring_enter, s->ring_fd, to_submit,
-                       min_complete, flags);
+                       min_complete, flags, NULL, 0);
 }
 
 static int gettid(void)