posixaio: use 'errno' for inline error
authorJens Axboe <axboe@fb.com>
Thu, 7 May 2015 15:52:35 +0000 (09:52 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 7 May 2015 15:52:35 +0000 (09:52 -0600)
aio_error() is only for when aio_*() didn't fail submitting.

Signed-off-by: Jens Axboe <axboe@fb.com>
engines/posixaio.c

index 8ab88fbb1faf2821c442015f85f78e24cb1d244d..29bcc5acc809f63fc7c46972564a5e696543ef78 100644 (file)
@@ -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