summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-01-28 07:44:31 -0700
committerJens Axboe <axboe@kernel.dk>2022-01-28 07:44:31 -0700
commit3cd6fb341a0663ff6141e484fa44c9f3c9692e0b (patch)
tree7f73b2c3b3604ef4e2f360d9a0abd1c35cc8c115
parentffb473d2fe12dfb2d4ad624774ac19017f2bb071 (diff)
parent8ee5cf229151d6dd7cf4934f4b4e31688302ab81 (diff)
downloadliburing-3cd6fb341a0663ff6141e484fa44c9f3c9692e0b.tar.gz
liburing-3cd6fb341a0663ff6141e484fa44c9f3c9692e0b.tar.bz2
Merge branch 'master' of https://github.com/DavidMusk93/liburing
* 'master' of https://github.com/DavidMusk93/liburing: examples/link-cp.c: fix the last file-block retry may overflow
-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));