FROMLIST: binder: add spinlocks to protect todo lists
authorTodd Kjos <tkjos@google.com>
Thu, 20 Oct 2016 17:33:00 +0000 (10:33 -0700)
committerTodd Kjos <tkjos@google.com>
Thu, 13 Jul 2017 15:34:21 +0000 (08:34 -0700)
commit1c89e6b2c5397410a5b648eae5d2eedc669da976
treeefe5b7192afd76b074a6c42049eacabb925472c9
parente7f23ede6e9c92adb4d7b6fd143d838ea5440e92
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: Iaf613f317d7c6a1409055de47c5b84cd8147102e
Signed-off-by: Todd Kjos <tkjos@google.com>
drivers/android/binder.c