On 8/15/22 16:25, Dylan Yudaken wrote:
On Mon, 2022-08-15 at 15:02 +0100, Pavel Begunkov wrote:
On 8/15/22 14:09, Dylan Yudaken wrote:
[...]
Not same thread group, they have to be executed by the same thread.
One of the assumptions is that current->io_uring is the same
as the request was initialised with.
How do the wq paths work in that case? I can see in io_queue_iowq that
we only check for same_thread_group.
It's under WARN_ON_ONCE() and should never happen, otherwise
there is a bug. iowq would io_req_complete_post() to complete.
If required to be the same task we'd probably want to enforce
IORING_SETUP_SINGLE_ISSUER for this flag (not a big problem).
And I guess also make sure it's not run by a different task
on the waiting side or so.
--
Pavel Begunkov