io_uring: add support for IORING_ASYNC_CANCEL_ALL
authorJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 16:44:00 +0000 (10:44 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Apr 2022 22:34:37 +0000 (16:34 -0600)
commit85222d8b6adb5bc2fb48e1bb61f16f3513d3d584
tree6b63cb178300deae90ed0a65e8b93ab3dc9ec440
parent36689d57c71ff79e2e63a36e8b48f210f77e453b
io_uring: add support for IORING_ASYNC_CANCEL_ALL

The current cancelation will lookup and cancel the first request it
finds based on the key passed in. Add a flag that allows to cancel any
request that matches they key. It completes with the number of requests
found and canceled, or res < 0 if an error occured.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/20220418164402.75259-4-axboe@kernel.dk
fs/io-wq.h
fs/io_uring.c
include/uapi/linux/io_uring.h