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)
commite58d498e81baa9fd8acf5132d8b2d4f829361f6b
treeaddc514ac82d4325ee3fa2dc2f0e7b0aa9ca97bb
parenteb4a299b2f95437af6183946c2a2e850621cefdb
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