X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fposixaio.c;h=88ed40266390a0b0e2d88420f3aef595a6fa7a10;hb=cd963e18de21e08ebb2ed86366f07347b4c58e3d;hp=88dc0e90a654f2d49f372194a3caf6fe575684de;hpb=808a63b8d2d5f6d3a4ec83e718495f09588aef7e;p=fio.git diff --git a/engines/posixaio.c b/engines/posixaio.c index 88dc0e90..88ed4026 100644 --- a/engines/posixaio.c +++ b/engines/posixaio.c @@ -11,7 +11,6 @@ #include #include "../fio.h" -#include "../os.h" #ifdef FIO_HAVE_POSIXAIO @@ -181,8 +180,8 @@ static int fio_posixaio_init(struct thread_data *td) struct posixaio_data *pd = malloc(sizeof(*pd)); memset(pd, 0, sizeof(*pd)); - pd->aio_events = malloc(td->iodepth * sizeof(struct io_u *)); - memset(pd->aio_events, 0, td->iodepth * sizeof(struct io_u *)); + pd->aio_events = malloc(td->o.iodepth * sizeof(struct io_u *)); + memset(pd->aio_events, 0, td->o.iodepth * sizeof(struct io_u *)); td->io_ops->data = pd; return 0;