io_uring/cancel: add IORING_ASYNC_CANCEL_USERDATA
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Jun 2023 16:33:11 +0000 (10:33 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Jul 2023 16:51:28 +0000 (10:51 -0600)
commit7e6cbcfe172d83eebbbaf0f053b5615e3a19df6d
tree535763fc55c4701876bffc24a77fa8165dcdd632
parentdd1fef0613f03a2dfc451534a59c8fcb33198e5e
io_uring/cancel: add IORING_ASYNC_CANCEL_USERDATA

Add a flag to explicitly match on user_data in the request for
cancelation purposes. This is the default behavior if none of the
other match flags are set, but if we ALSO want to match on user_data,
then this flag can be set.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/cancel.c