diff options
author | 2017-06-29 12:01:49 -0700 | |
---|---|---|
committer | 2017-07-17 14:47:29 +0200 | |
commit | 08dabceefee0eddace493fc16da172c93402187f (patch) | |
tree | 2adeda656687f13b4238936377b6328a8444b4ee /drivers/android/binder_alloc.c | |
parent | binder: avoid race conditions when enqueuing txn (diff) | |
download | linux-dev-08dabceefee0eddace493fc16da172c93402187f.tar.xz linux-dev-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 <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android/binder_alloc.c')
0 files changed, 0 insertions, 0 deletions