OSDN Git Service

ANDROID: binder: don't enqueue death notifications to thread todo.
authorMartijn Coenen <maco@android.com>
Thu, 10 Aug 2017 11:50:52 +0000 (13:50 +0200)
committerMartijn Coenen <maco@android.com>
Fri, 11 Aug 2017 08:19:00 +0000 (10:19 +0200)
commitc825eca5ec45a467e78e66425fadfb001a8199df
tree3633ec11f8f3ae05e87ed063a88ada5a344d6152
parent4d666b500c2de3edc65e2ab5d5fe36780c230604
ANDROID: binder: don't enqueue death notifications to thread todo.

This allows userspace to request death notifications without
having to worry about getting an immediate callback on the same
thread; one scenario where this would be problematic is if the
death recipient handler grabs a lock that was already taken
earlier (eg as part of a nested transaction).

Bug: 23525545
Test: binderLibTest.DeathNotificationThread passes
Change-Id: I955e16306fe3110dacb9a391ffff1bf869249495
Signed-off-by: Martijn Coenen <maco@android.com>
drivers/android/binder.c