From 138c0e22828cfb2993c382e8fdb54562fbc19005 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 7 May 2015 09:52:35 -0600 Subject: [PATCH] posixaio: use 'errno' for inline error aio_error() is only for when aio_*() didn't fail submitting. Signed-off-by: Jens Axboe --- engines/posixaio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/posixaio.c b/engines/posixaio.c index 8ab88fbb..29bcc5ac 100644 --- a/engines/posixaio.c +++ b/engines/posixaio.c @@ -198,7 +198,7 @@ static int fio_posixaio_queue(struct thread_data *td, } if (ret) { - int aio_err = aio_error(aiocb); + int aio_err = errno; /* * At least OSX has a very low limit on the number of pending -- 2.25.1