Skip to content

io_uring/cancel: futex and waitid cancel results

agxr io-uring lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2io_uring/cancel: count all canceled futex and waitid requests on CANCEL_ALLio_uring/cancel.c+1 -10 replies
2/2io_uring/cancel: complete single futex or waitid cancel with 0io_uring/cancel.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] io_uring/cancel: futex and waitid cancel results

io_futex_cancel() and io_waitid_cancel() return the number of requests they canceled, where the rest of what io_try_cancel() calls returns 0. Commit c74193430feb ("io_uring/timeout: don't end a linked timeout with 1") took care of what that did to a linked timeout.

liburing's futex, waitid, io-cancel, sync-cancel, poll-cancel-all, cancel-race, futex-kill, link-timeout, timeout and poll-cancel tests pass on both patched kernels. Unchanged liburing tests pass with patch 1 and fail with patch 2, where they check for the 1.

agxr (2):
io_uring/cancel: count all canceled futex and waitid requests on
CANCEL_ALL
io_uring/cancel: complete single futex or waitid cancel with 0

 io_uring/cancel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

base-commit: ecb6817b769fd7d71af2c9f446188649020b2e53

Signature · 1 line
2.56.0