]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: complete notifiers in tw
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 12 Jul 2022 20:52:40 +0000 (21:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:41:06 +0000 (18:41 -0600)
commit1c0f253f15073b4830cf265b6e7067c22d7e8151
treeaddc514ac82d4325ee3fa2dc2f0e7b0aa9ca97bb
parent020f9eabaeaa653d53e37c9204513256cfbe121f
io_uring: complete notifiers in tw

We need a task context to post CQEs but using wq is too expensive.
Try to complete notifiers using task_work and fall back to wq if fails.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/089799ab665b10b78fdc614ae6d59fa7ef0d5f91.1657643355.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/notif.c
io_uring/notif.h