binder: add spinlocks to protect todo lists
authorTodd Kjos <tkjos@android.com>
Thu, 29 Jun 2017 19:02:02 +0000 (12:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 12:48:24 +0000 (14:48 +0200)
commit72196393a5e3d28c21679e3b745c06dd4a5b24c9
tree69ac0b6518bdb24544f27ee65e0cdc46ae188597
parented29721e22e30939f417a2f734c0bfb3a980647d
binder: add spinlocks to protect todo lists

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.

Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c