Skip to content

Cancelation cleanups

Jens Axboe io-uring 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6io_uring/cancel: add generic remove_all helperio_uring/cancel.c io_uring/cancel.h+24 -02 replies
2/6io_uring/futex: convert to io_cancel_remove_all()io_uring/futex.c+3 -170 replies
3/6io_uring/waitid: convert to io_cancel_remove_all()io_uring/waitid.c+3 -170 replies
4/6io_uring/cancel: add generic cancel helperio_uring/cancel.c io_uring/cancel.h+25 -00 replies
5/6io_uring/futex: use generic io_cancel_remove() helperio_uring/futex.c+1 -232 replies
6/6io_uring/waitid: use generic io_cancel_remove() helperio_uring/waitid.c+1 -230 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/6] Cancelation cleanups

Hi,

While adding another cancelable request type, I noticed that there's a bit of boilerplate code for supporting that. This patch series gets rid of the generic hlist_head based cancel implementations and adds a generic one instead that both futex and waitid can use. The pending epoll wait implementation will be able to use it too.

 io_uring/cancel.c | 41 +++++++++++++++++++++++++++++++++++++++++
 io_uring/cancel.h |  8 ++++++++
 io_uring/futex.c  | 42 +++---------------------------------------
 io_uring/waitid.c | 42 +++---------------------------------------
 4 files changed, 55 insertions(+), 78 deletions(-)
Signature · 1 line
Jens Axboe