Commit 8afc5b8d authored by Tiffany Y. Yang's avatar Tiffany Y. Yang Committed by Tiffany Yang
Browse files

UPSTREAM: binder: Refactor binder_node print synchronization



The binder driver outputs information about each dead binder node by
iterating over the dead nodes list, and it prints the state of each live
node in the system by traversing each binder_proc's proc->nodes tree.
Both cases require similar logic to maintain the global lock ordering
while accessing each node.

Create a helper function to synchronize around printing binder nodes in
a list. Opportunistically make minor cosmetic changes to binder print
functions.

Acked-by: default avatarCarlos Llamas <cmllamas@google.com>
Signed-off-by: default avatar"Tiffany Y. Yang" <ynaffit@google.com>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250510013435.1520671-5-ynaffit@google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 316970771
(cherry picked from commit 91f1bbaa)
Change-Id: Iae546a847ca138ddfffcdc24faf075b325a54640
Signed-off-by: default avatar"Tiffany Yang" <ynaffit@google.com>
parent 5e2e421a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment