1
0
Fork 0
alistair23-linux/drivers/android
Todd Kjos 08dabceefe binder: don't modify thread->looper from other threads
The looper member of struct binder_thread is a bitmask
of control bits. All of the existing bits are modified
by the affected thread except for BINDER_LOOPER_STATE_NEED_RETURN
which can be modified in binder_deferred_flush() by
another thread.

To avoid adding a spinlock around all read-mod-writes to
modify a bit, the BINDER_LOOPER_STATE_NEED_RETURN flag
is replaced by a separate field in struct binder_thread.

Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-17 14:47:29 +02:00
..
Kconfig binder: Add 'hwbinder' to the default devices 2017-03-17 15:10:49 +09:00
Makefile binder: move binder_alloc to separate file 2017-07-17 14:47:29 +02:00
binder.c binder: don't modify thread->looper from other threads 2017-07-17 14:47:29 +02:00
binder_alloc.c binder: add log information for binder transaction failures 2017-07-17 14:47:29 +02:00
binder_alloc.h binder: move binder_alloc to separate file 2017-07-17 14:47:29 +02:00
binder_trace.h binder: separate out binder_alloc functions 2017-07-17 14:47:28 +02:00