X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fposixaio.c;h=4aa7420c020dffbfff36a77d74c3d15b7fb6dc3b;hb=b4ba5f302c467dc10c8b89459a8cb97d2958f359;hp=88dc0e90a654f2d49f372194a3caf6fe575684de;hpb=808a63b8d2d5f6d3a4ec83e718495f09588aef7e;p=fio.git diff --git a/engines/posixaio.c b/engines/posixaio.c index 88dc0e90..4aa7420c 100644 --- a/engines/posixaio.c +++ b/engines/posixaio.c @@ -181,8 +181,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;