Skip to content

Add support for IORING_ASYNC_CANCEL_OP

Jens Axboe io-uring 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8io_uring/poll: always set 'ctx' in io_cancel_dataio_uring/poll.c+1 -10 replies
2/8io_uring/timeout: always set 'ctx' in io_cancel_dataio_uring/timeout.c+2 -20 replies
3/8io_uring/cancel: abstract out request match helperio_uring/cancel.c io_uring/cancel.h+14 -40 replies
4/8io_uring/cancel: fix sequence matching for IORING_ASYNC_CANCEL_ANYio_uring/cancel.c+3 -20 replies
5/8io_uring: use cancelation match helper for poll and timeout requestsio_uring/poll.c io_uring/timeout.c+7 -170 replies
6/8io_uring/cancel: add IORING_ASYNC_CANCEL_USERDATAinclude/uapi/linux/io_uring.h io_uring/cancel.c+14 -60 replies
7/8io_uring/cancel: support opcode based lookup and cancelationinclude/uapi/linux/io_uring.h io_uring/cancel.c io_uring/cancel.h +1 more+19 -50 replies
8/8io_uring/cancel: wire up IORING_ASYNC_CANCEL_OP for sync cancelinclude/uapi/linux/io_uring.h io_uring/cancel.c+11 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCHSET 0/8] Add support for IORING_ASYNC_CANCEL_OP

Hi,

We currently support matching on user_data OR file descriptor, in conjunction with the ANY/ALL matches we also have.

This series starts by cleaning up the cancelation support a bit, most notably using a common match handler to avoid duplicating the matching code in a few different spots.

Then it adds IORING_ASYNC_CANCEL_USERDATA, to explicitly ask for matching on user_data. This was the only original way to match, but we since added FD matching. To retain backwards compatability, we will always match on user_data IFF none of the other key matches are set (eg FD and OP).

This now allows matching on any set of criteria that the application wants. It can match on user_data AND fd, for example.

Finally we add support for IORING_ASYNC_CANCEL_OP, which allows applications to match on the original request opcode as well.

Signature · 1 line
Jens Axboe