engines/libaio: use fio_memalign() helper for user iocbs
authorJens Axboe <axboe@kernel.dk>
Wed, 21 Nov 2018 16:02:47 +0000 (09:02 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Nov 2018 16:02:47 +0000 (09:02 -0700)
commit90a8c9b2e23be4df5089d341b987ae935de42cd2
treec7aa26ee7de92e8d50061afb618daca0588508ce
parent2da0f5d527b63f59ad2921bf56eecb6177ba0ae6
engines/libaio: use fio_memalign() helper for user iocbs

Don't rely on posix_memalign() being there, that's why we have
this helper.

Also ensure that the memory is cleared. This is important, as
we are passing this to the kernel, and we can't rely on our
->prep() clearing everything all the time.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/libaio.c