Re: [PATCH v2 4/6] rust_binder: keep NodeDeath in NodeRefInfo during process cleanup
From: Matthew Maurer
Date: Thu Jun 11 2026 - 19:16:57 EST
On Tue, Jun 9, 2026 at 2:45 AM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> By keeping the NodeDeath inside the NodeRefInfo structure during process
> cleanup, we avoid running its destructor under the node_refs lock. It is
> still dropped shortly thereafter when the entire rbtree holding the
> NodeRefInfo objects is dropped, but that occurs outside of the lock.
>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> ---
> drivers/android/binder/process.rs | 12 +++++-------
> 1 file changed, 5 insertions(+), 7 deletions(-)
>
Reviewed-by: Matthew Maurer <mmaurer@xxxxxxxxxx>