diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-06-15 10:24:03 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-15 08:51:34 -0600 |
commit | 4f26bda1522c35d2701fc219368c7101c17005c1 (patch) | |
tree | bd0d4937c3b984578e97b96d08c93a1442b0c077 /fs/io-wq.h | |
parent | f4c2665e33f48904f2766d644df33fb3fd54b5ec (diff) | |
download | linux-4f26bda1522c35d2701fc219368c7101c17005c1.tar.bz2 |
io-wq: add an option to cancel all matched reqs
This adds support for cancelling all io-wq works matching a predicate.
It isn't used yet, so no change in observable behaviour.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r-- | fs/io-wq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h index 8e138fa88b9f..7d5bd431c5e3 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -130,7 +130,7 @@ enum io_wq_cancel io_wq_cancel_pid(struct io_wq *wq, pid_t pid); typedef bool (work_cancel_fn)(struct io_wq_work *, void *); enum io_wq_cancel io_wq_cancel_cb(struct io_wq *wq, work_cancel_fn *cancel, - void *data); + void *data, bool cancel_all); struct task_struct *io_wq_get_task(struct io_wq *wq); |