Signed-off-by: Jens Axboe <axboe@kernel.dk>
Conflicts:
engines/libaio.c
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-#define ev_to_iou(ev) (struct io_u *) ((unsigned long) (ev)->obj)
-
struct libaio_data {
io_context_t aio_ctx;
struct io_event *aio_events;
struct libaio_data {
io_context_t aio_ctx;
struct io_event *aio_events;
struct io_u *io_u;
ev = ld->aio_events + event;
struct io_u *io_u;
ev = ld->aio_events + event;
+ io_u = container_of(ev->obj, struct io_u, iocb);
if (ev->res != io_u->xfer_buflen) {
if (ev->res > io_u->xfer_buflen)
if (ev->res != io_u->xfer_buflen) {
if (ev->res > io_u->xfer_buflen)