From: Jens Axboe Date: Wed, 21 Nov 2018 18:33:22 +0000 (-0700) Subject: engines/libaio: cleanup new vs old io_setup() system call path X-Git-Tag: fio-3.13~102 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=0fcbc00994f49f73fe815b9dc074bd6a15eab522 engines/libaio: cleanup new vs old io_setup() system call path Just fall through to the old code if the new one fails. Signed-off-by: Jens Axboe --- diff --git a/engines/libaio.c b/engines/libaio.c index 00d62162..74238e4e 100644 --- a/engines/libaio.c +++ b/engines/libaio.c @@ -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)