Add support for IORING_ASYNC_CANCEL_OP
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | io_uring/poll: always set 'ctx' in io_cancel_dataio_uring/ | +1 | 0 replies | |
| 2/8 | io_uring/timeout: always set 'ctx' in io_cancel_dataio_uring/ | +2 | 0 replies | |
| 3/8 | io_uring/cancel: abstract out request match helperio_uring/ io_uring/ | +14 | 0 replies | |
| 4/8 | io_uring/cancel: fix sequence matching for IORING_ASYNC_CANCEL_ANYio_uring/ | +3 | 0 replies | |
| 5/8 | io_uring: use cancelation match helper for poll and timeout requestsio_uring/ io_uring/ | +7 | 0 replies | |
| 6/8 | io_uring/cancel: add IORING_ASYNC_CANCEL_USERDATAinclude/ io_uring/ | +14 | 0 replies | |
| 7/8 | io_uring/cancel: support opcode based lookup and cancelationinclude/ io_uring/ io_uring/ +1 more | +19 | 0 replies | |
| 8/8 | io_uring/cancel: wire up IORING_ASYNC_CANCEL_OP for sync cancelinclude/ io_uring/ | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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