engines/libaio: cleanup new vs old io_setup() system call path
authorJens Axboe <axboe@kernel.dk>
Wed, 21 Nov 2018 18:33:22 +0000 (11:33 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Nov 2018 18:33:22 +0000 (11:33 -0700)
Just fall through to the old code if the new one fails.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/libaio.c

index 00d621623d6f4edf83a194ff3220e1992aa8353e..74238e4e939e55cab3b349925725554456269fb4 100644 (file)
@@ -428,11 +428,9 @@ static int fio_libaio_queue_init(struct libaio_data *ld, unsigned int depth,
                        &ld->aio_ctx);
        if (!ret)
                return 0;
-
-       return fio_libaio_old_queue_init(ld, depth, hipri, useriocb);
-#else
-       return fio_libaio_old_queue_init(ld, depth, hipri, useriocb);
+       /* fall through to old syscall */
 #endif
+       return fio_libaio_old_queue_init(ld, depth, hipri, useriocb);
 }
 
 static int fio_libaio_init(struct thread_data *td)