diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-01-11 10:36:28 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-01-11 10:36:28 -0700 |
commit | ff52073504552183d8593a39aa4b87d4741b3776 (patch) | |
tree | ad93682e065562e2291b29b4f6c8c9e7a8b18310 /test | |
parent | a992ffa48292f1175ea2621de58fb4cde3bb62dd (diff) |
Sync with kernel API
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r-- | test/io_uring-cp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/io_uring-cp.c b/test/io_uring-cp.c index a588cc2..ce624c5 100644 --- a/test/io_uring-cp.c +++ b/test/io_uring-cp.c @@ -75,7 +75,7 @@ static int queue_read(int fd, off_t size, off_t offset) sqe->off = offset; sqe->addr = data->iov; sqe->buf_index = 0; - sqe->data = (unsigned long) data; + sqe->user_data = (unsigned long) data; iovecs[sqe_index(sqe)].iov_len = size; sqe->len = 1; return 0; @@ -114,7 +114,7 @@ static int complete_writes(unsigned *writes) static void queue_write(int fd, struct io_uring_cqe *cqe) { - struct io_data *data = (struct io_data *) cqe->data; + struct io_data *data = (struct io_data *) cqe->user_data; struct io_uring_sqe *sqe; sqe = io_uring_get_sqe(&out_ring); @@ -125,7 +125,7 @@ static void queue_write(int fd, struct io_uring_cqe *cqe) sqe->off = data->offset; sqe->addr = data->iov; sqe->buf_index = 0; - sqe->data = 0; + sqe->user_data = 0; data->iov->iov_len = cqe->res; sqe->len = 1; free(data); |