X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fposixaio.c;h=4aa7420c020dffbfff36a77d74c3d15b7fb6dc3b;hp=88dc0e90a654f2d49f372194a3caf6fe575684de;hb=2c187c0fcaab8a4c6d1ba67d2ad2460b5fb42109;hpb=808a63b8d2d5f6d3a4ec83e718495f09588aef7e 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;