From: Slava Pestov Date: Wed, 8 Oct 2014 02:00:54 +0000 (-0600) Subject: libaio: retry on -EINTR X-Git-Tag: fio-2.1.14~89 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8e47b0ad5ba0f567c6ae4fabeb516bc1b4fcd651;hp=bc10c331dad361ea4b5122af1d875d46a6ce427e libaio: retry on -EINTR Signed-off-by: Jens Axboe --- diff --git a/engines/libaio.c b/engines/libaio.c index 6c5d73ed..d11a262e 100644 --- a/engines/libaio.c +++ b/engines/libaio.c @@ -167,7 +167,7 @@ static int fio_libaio_getevents(struct thread_data *td, unsigned int min, events += r; else if (r == -EAGAIN) usleep(100); - else + else if (r != -EINTR) break; } while (events < min);