Re: [PATCH v4 1/2] binder: Refactor binder_node print synchronization

From: Alice Ryhl
Date: Mon May 19 2025 - 13:48:10 EST


On Sat, May 10, 2025 at 01:34:38AM +0000, Tiffany Y. Yang wrote:
> 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: Carlos Llamas <cmllamas@xxxxxxxxxx>
> Signed-off-by: Tiffany Y. Yang <ynaffit@xxxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>