aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/android/binder_alloc.h
diff options
context:
space:
mode:
authorTodd Kjos <[email protected]>2017-06-29 19:01:49 +0000
committerGreg Kroah-Hartman <[email protected]>2017-07-17 12:47:29 +0000
commit08dabceefee0eddace493fc16da172c93402187f (patch)
tree2adeda656687f13b4238936377b6328a8444b4ee /drivers/android/binder_alloc.h
parentbinder: avoid race conditions when enqueuing txn (diff)
downloadkernel-08dabceefee0eddace493fc16da172c93402187f.tar.gz
kernel-08dabceefee0eddace493fc16da172c93402187f.zip
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/android/binder_alloc.h')
0 files changed, 0 insertions, 0 deletions