io_uring: add support for IORING_ASYNC_CANCEL_ANY
authorJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 16:44:02 +0000 (10:44 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Apr 2022 00:18:18 +0000 (18:18 -0600)
commit970f256edb8c1259c8ed48d52b38215135396126
tree2e7c29aac5efd17b3be8b61fc5f6dfdd3f3dde5b
parent4bf94615b8886305199ed5755cb72fea88258d15
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>
Link: https://lore.kernel.org/r/20220418164402.75259-6-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h