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>
Mon, 25 Apr 2022 00:18:18 +0000 (18:18 -0600)
commit8e29da69feade64ec7fe9e1a2824b967c5183a21
treee4d7fdcfeeafcd3b32b7b66ee8289d534d68d7ae
parentb21432b4d580d064b6dee6d66c9a6b0071b499ce
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