io_rw_should_reissue() tries to propagate EAGAIN back to io_uring when happens off the submission path, which is when it's staying within the same task, and so thread group checks don't make much sense. Cc: stable@xxxxxxxxxxxxxxx Fixes: ef04688871f33 ("io_uring: don't block level reissue off completion path") Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> --- io_uring/rw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_uring/rw.c b/io_uring/rw.c index ca1b19d3d142..4d5aeff79130 100644 --- a/io_uring/rw.c +++ b/io_uring/rw.c @@ -485,7 +485,7 @@ static bool io_rw_should_reissue(struct io_kiocb *req) * Play it safe and assume not safe to re-import and reissue if we're * not in the original thread group (or in task context). */ - if (!same_thread_group(req->tctx->task, current) || !in_task()) + if (req->tctx->task != current || !in_task()) return false; return true; } -- 2.47.1