engines/libaio: update for newer io_setup2() system call
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 18:17:29 +0000 (11:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 18:17:29 +0000 (11:17 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/libaio.c

index a780b2b..acd10c9 100644 (file)
@@ -454,7 +454,7 @@ static int fio_libaio_queue_init(struct libaio_data *ld, unsigned int depth,
                flags |= IOCTX_FLAG_FIXEDBUFS;
 
        ret = syscall(__NR_sys_io_setup2, depth, flags, ld->user_iocbs,
-                       &ld->aio_ctx);
+                       NULL, NULL, &ld->aio_ctx);
        if (!ret)
                return 0;
        /* fall through to old syscall */