FROMLIST: binder: add spinlocks to protect todo lists
authorTodd Kjos <tkjos@google.com>
Thu, 20 Oct 2016 17:33:00 +0000 (10:33 -0700)
committerDanny Wood <danwood76@gmail.com>
Tue, 26 Feb 2019 11:36:33 +0000 (11:36 +0000)
commitaad8732cd4acfc22f50b119ea95da30e83c47c21
tree67c6d7be5b80cb1c748c3798d4f8a04a713f7c16
parentccca76b6cc065bc696aa1a894022bd2bdabca82f
FROMLIST: binder: add spinlocks to protect todo lists

(from https://patchwork.kernel.org/patch/9817769/)

The todo lists in the proc, thread, and node structures
are accessed by other procs/threads to place work
items on the queue.

The todo lists are protected by the new proc->inner_lock.
No locks should ever be nested under these locks. As the
name suggests, an outer lock will be introduced in
a later patch.

Change-Id: I7720bacf5ebae4af177e22fcab0900d54c94c11a
Signed-off-by: Todd Kjos <tkjos@google.com>
drivers/android/binder.c