From: Alice Ryhl <aliceryhl@google.com>
To: Adhyansh Verma <adhyanshverma2010@gmail.com>
Cc: "Alice Ryhl" <aliceryhl@google.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Carlos Llamas" <cmllamas@google.com>,
"Arve Hjønnevåg" <arve@android.com>,
"Todd Kjos" <tkjos@android.com>,
"Christian Brauner" <brauner@kernel.org>,
linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] rust_binder: retry ready threads or fallback to proc queue on dead thread
Date: Fri, 27 Nov 2026 14:27:48 +0000 [thread overview]
Message-ID: <20261127142748.1874983-1-aliceryhl@google.com> (raw)
In-Reply-To: <20261127102232.74796-1-adhyanshverma2010@gmail.com>
On Fri, Nov 27, 2026 at 03:52:32PM +0530, Adhyansh Verma wrote:
> When ProcessInner::push_work() attempts to deliver work to a waiting
> thread from ready_threads, it previously checked only the first thread
> with an 'if let'. If that thread has exited while waiting in the pool,
> thread.push_work_inner() returns PushWorkRes::FailedDead(work).
A thread in `ready_threads` can never be dead: `Thread::release()` is
only called from `BINDER_THREAD_EXIT` on `current` (which cannot be
sleeping in `Thread::get_work()` with a `Registration` active) or from
`Process::deferred_release()` after `ready_threads` is already emptied.
So this case is unreachable, and I don't think we need this change.
Alice
prev parent reply other threads:[~2026-11-27 14:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 10:22 Adhyansh Verma
2026-11-27 14:27 ` Alice Ryhl [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=20261127142748.1874983-1-aliceryhl@google.com \
--to=aliceryhl@google.com \
--cc=adhyanshverma2010@gmail.com \
--cc=arve@android.com \
--cc=brauner@kernel.org \
--cc=cmllamas@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=tkjos@android.com \
/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
all inboxes | Powered by JetHome®