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 a780b2b8a42bdf1e44c18a23463c2a6c77282c96..acd10c997bcc106bfd37891e5c7209a9a467e040 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,
                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 */
        if (!ret)
                return 0;
        /* fall through to old syscall */