summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/link-cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/link-cp.c b/examples/link-cp.c
index 244d21a..018124e 100644
--- a/examples/link-cp.c
+++ b/examples/link-cp.c
@@ -95,7 +95,7 @@ static int handle_cqe(struct io_uring *ring, struct io_uring_cqe *cqe)
if (cqe->res < 0) {
if (cqe->res == -ECANCELED) {
- queue_rw_pair(ring, BS, data->offset);
+ queue_rw_pair(ring, data->iov.iov_len, data->offset);
inflight += 2;
} else {
printf("cqe error: %s\n", strerror(-cqe->res));