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 5279b1d0ffb7d38ba9ceb144b99ba26dd690574d..014f954ee96fdfd409e57f4455bbd7d0828d6c85 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 3bcb19b647ccc2c13c91098bf9a4231a12b05bfb..62b48e446dea5ee517d7ddf59f5e12f99428ae26 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)