io_uring: force multishot CQEs into task context
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 7 Dec 2022 03:53:31 +0000 (03:53 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Dec 2022 13:47:13 +0000 (06:47 -0700)
commit17add5cea2bbafea0d481f1a3ea9dea019a98ee9
tree55652b69cf57e7f16a461773ae78682bacf47e48
parente6aeb2721d3bad8379c43644d0380908e93b0187
io_uring: force multishot CQEs into task context

Multishot are posting CQEs outside of the normal request completion
path, which is usually done from within a task work handler. However, it
might be not the case when it's yet to be polled but has been punted to
io-wq. Make it abide ->task_complete and push it to the polling path
when executed by io-wq.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d7714aaff583096769a0f26e8e747759e556feb1.1670384893.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c