diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-12-07 06:53:30 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-12-07 16:47:13 +0300 |
commit | e6aeb2721d3bad8379c43644d0380908e93b0187 (patch) | |
tree | 82f98f25d70cf4e3e8781fdfdc493d5810810cf2 /include/linux/io_uring.h | |
parent | 1b346e4aa8e79227391ffd6b7c6ee5acf0fa8bfc (diff) | |
download | linux-e6aeb2721d3bad8379c43644d0380908e93b0187.tar.xz |
io_uring: complete all requests in task context
This patch adds ctx->task_complete flag. If set, we'll complete all
requests in the context of the original task. Note, this extends to
completion CQE posting only but not io_kiocb cleanup / free, e.g. io-wq
may free the requests in the free calllback. This flag will be used
later for optimisations purposes.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/21ece72953f76bb2e77659a72a14326227ab6460.1670384893.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/io_uring.h')
-rw-r--r-- | include/linux/io_uring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h index 29e519752da4..934e5dd4ccc0 100644 --- a/include/linux/io_uring.h +++ b/include/linux/io_uring.h @@ -11,6 +11,8 @@ enum io_uring_cmd_flags { IO_URING_F_UNLOCKED = 2, /* the request is executed from poll, it should not be freed */ IO_URING_F_MULTISHOT = 4, + /* executed by io-wq */ + IO_URING_F_IOWQ = 8, /* int's last bit, sign checks are usually faster than a bit test */ IO_URING_F_NONBLOCK = INT_MIN, |