From: Jens Axboe Date: Thu, 7 May 2015 15:52:35 +0000 (-0600) Subject: posixaio: use 'errno' for inline error X-Git-Tag: fio-2.2.8~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=138c0e22828cfb2993c382e8fdb54562fbc19005;p=fio.git posixaio: use 'errno' for inline error aio_error() is only for when aio_*() didn't fail submitting. Signed-off-by: Jens Axboe --- 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