From 0fcbc00994f49f73fe815b9dc074bd6a15eab522 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 21 Nov 2018 11:33:22 -0700 Subject: [PATCH] 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 --- engines/libaio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) -- 2.25.1