diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-04-18 19:44:00 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-25 03:18:18 +0300 |
commit | 8e29da69feade64ec7fe9e1a2824b967c5183a21 (patch) | |
tree | e4d7fdcfeeafcd3b32b7b66ee8289d534d68d7ae /fs/io-wq.h | |
parent | b21432b4d580d064b6dee6d66c9a6b0071b499ce (diff) | |
download | linux-8e29da69feade64ec7fe9e1a2824b967c5183a21.tar.xz |
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
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r-- | fs/io-wq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h index dbecd27656c7..ba6eee76d028 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -155,6 +155,7 @@ struct io_wq_work_node *wq_stack_extract(struct io_wq_work_node *stack) struct io_wq_work { struct io_wq_work_node list; unsigned flags; + int cancel_seq; }; static inline struct io_wq_work *wq_next_work(struct io_wq_work *work) |