From: Karl Mehltretter <kmehltretter@gmail.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: io-uring@vger.kernel.org, regressions@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [REGRESSION] io_uring: final close can hang on a stopped submitter
Date: Tue, 27 Oct 2026 21:45:50 +0100 [thread overview]
Message-ID: <auENFo-ONkpSYcNq@gmail.com> (raw)
In-Reply-To: <b50196b6-cc04-4d3e-965a-28c4f75ef263@kernel.dk>
On Tue, Oct 27, 2026 at 12:04:59PM +0100, Jens Axboe wrote:
> > 3. A unmaps the ring but keeps its fd. B drops its fd and mappings,
> > then stops itself with SIGSTOP.
> > 4. After confirming that B is stopped, controller P tells A to close
> > the final ring fd.
> > 5. P resumes B after two seconds so the test can finish.
> >
> > B keeps both pipe ends open and remains alive until close returns. This
> > excludes pipe HUP and process exit as completion sources.
>
> This is working as intended. With the change, close() waits for
> requests still in flight, as otherwise they keep files pinned after
> the ring is gone. If you SIGSTOP a task, then that task can't run
> the required work to complete it. A fatal signal will still kill
> it.
>
> Unsurprisingly, sending SIGSTOP to something may prevent it from
> doing work...
>
Good point. This is not a real regression.
Thanks,
Karl
prev parent reply other threads:[~2026-10-27 20:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 4:35 [REGRESSION] io_uring: final close can hang on a stopped submitter Karl Mehltretter
2026-10-27 18:04 ` Jens Axboe
2026-10-27 20:45 ` Karl Mehltretter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=auENFo-ONkpSYcNq@gmail.com \
--to=kmehltretter@gmail.com \
--cc=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=regressions@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox