]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9529fa5d84ed9e9feb0459f536a20903e85f3f54
treee4d7fdcfeeafcd3b32b7b66ee8289d534d68d7ae
parent04ef8c41ab0b2160218f32c7ede1c0b0166341a2
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