io_uring: further limit non-owner defer-tw cq waiting
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 8 Sep 2022 15:56:52 +0000 (16:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 19:14:46 +0000 (13:14 -0600)
commit76de6749d1bc1817367fedda94cd7c5d325df6c4
treef51fef426073ca174c3e6baab5bb0e400eb6a0ae
parentac9e5784bbe72f4f603d1af84760ec09bc0b5ccd
io_uring: further limit non-owner defer-tw cq waiting

In case of DEFER_TASK_WORK we try to restrict waiters to only one task,
which is also the only submitter; however, we don't do it reliably,
which might be very confusing and backfire in the future. E.g. we
currently allow multiple tasks in io_iopoll_check().

Fixes: c0e0d6ba25f1 ("io_uring: add IORING_SETUP_DEFER_TASKRUN")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/94c83c0a7fe468260ee2ec31bdb0095d6e874ba2.1662652536.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h