X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fposixaio.c;h=c352a7ad852bd77bc15c197b003573f3a5e147f6;hb=509df2bc49284a93efd6b890bdf5e3c4ea2aba4a;hp=4aa7420c020dffbfff36a77d74c3d15b7fb6dc3b;hpb=2dc1bbeb58edc85f2829eed6729862c438ea2353;p=fio.git diff --git a/engines/posixaio.c b/engines/posixaio.c index 4aa7420c..c352a7ad 100644 --- a/engines/posixaio.c +++ b/engines/posixaio.c @@ -11,7 +11,6 @@ #include #include "../fio.h" -#include "../os.h" #ifdef FIO_HAVE_POSIXAIO @@ -77,13 +76,14 @@ static int fio_posixaio_prep(struct thread_data fio_unused *td, return 0; } -static int fio_posixaio_getevents(struct thread_data *td, int min, int max, - struct timespec *t) +static int fio_posixaio_getevents(struct thread_data *td, unsigned int min, + unsigned int max, struct timespec *t) { struct posixaio_data *pd = td->io_ops->data; struct list_head *entry; struct timespec start; - int r, have_timeout = 0; + int have_timeout = 0; + unsigned int r; if (t && !fill_timespec(&start)) have_timeout = 1; @@ -149,6 +149,8 @@ static int fio_posixaio_queue(struct thread_data fio_unused *td, struct aiocb *aiocb = &io_u->aiocb; int ret; + fio_ro_check(td, io_u); + if (io_u->ddir == DDIR_READ) ret = aio_read(aiocb); else if (io_u->ddir == DDIR_WRITE)