io_uring: add support for IORING_ASYNC_CANCEL_ANY for-5.19/io_uring-cancel_fd
authorJens Axboe <axboe@kernel.dk>
Sat, 16 Apr 2022 20:42:56 +0000 (14:42 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 16:41:03 +0000 (10:41 -0600)
commitbfffcdd3e51091beab2bbbdc7bd680fc73f98530
tree59ec5586ff11ed6b746f23bbded968db02896f1d
parent70ee5d0c9483764472d0eb85abadf2a08422fd44
io_uring: add support for IORING_ASYNC_CANCEL_ANY

Rather than match on a specific key, be it user_data or file, allow
canceling any request that we can lookup. Works like
IORING_ASYNC_CANCEL_ALL in that it cancels multiple requests, but it
doesn't key off user_data or the file.

Can't be set with IORING_ASYNC_CANCEL_FD, as that's a key selector.
Only one may be used at the time.

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