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, 17 Jul 2023 16:05:48 +0000 (10:05 -0600)
commit8165b566049b14152873011ea540eb22eae5111d
tree0d5e8899e2cf4a9c72d1b8219c14eceb9415abe2
parenta30badf66de8516b5a5bca7a5d339f377ff983ea
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