Re: [PATCH 2/6] io_uring: disallow defer-tw run w/ no submitters

Dylan Yudaken
2022-09-08T16:43:21Z

On Thu, 2022-09-08 at 16:56 +0100, Pavel Begunkov wrote:
> We try to restrict CQ waiters when IORING_SETUP_DEFER_TASKRUN is set,
> but if nothing has been submitted yet it'll allow any waiter, which
> violates the contract.
>
> Fixes: dacbb30102689 ("io_uring: add IORING_SETUP_DEFER_TASKRUN")
> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
> ---
>  io_uring/io_uring.c | 7 +------
>  io_uring/io_uring.h | 9 ++-------
>  2 files changed, 3 insertions(+), 13 deletions(-)
>

Reviewed-by: Dylan Yudaken <dylany@fb.com>