io_uring: add support for IORING_ASYNC_CANCEL_ALL
authorJens Axboe <axboe@kernel.dk>
Fri, 15 Apr 2022 02:59:25 +0000 (20:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 16:41:02 +0000 (10:41 -0600)
commit08c10420b0a73429628db63480cf10a58778743c
treef56703dc7196ab612aea0ea6a316784579cf67bf
parent60dffdc46585249d394ff6cbe46876a662e06196
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>
fs/io-wq.h
fs/io_uring.c
include/uapi/linux/io_uring.h