ANDROID: binder: push new transactions to waiting threads.
authorMartijn Coenen <maco@google.com>
Tue, 6 Jun 2017 22:17:46 +0000 (15:17 -0700)
committerMartijn Coenen <maco@android.com>
Wed, 19 Jul 2017 08:12:51 +0000 (10:12 +0200)
commit053be42dee32738f819bc7486544b5feca561f27
tree7aeadd9dab4c3dd3cd9a605604a14c2018d2d18a
parent22d64e432c049f99cfd53058b2f532dd996772de
ANDROID: binder: push new transactions to waiting threads.

Instead of pushing new transactions to the process
waitqueue, select a thread that is waiting on proc
work to handle the transaction. This will make it
easier to improve priority inheritance in future
patches, by setting the priority before we wake up
a thread.

If we can't find a waiting thread, submit the work
to the proc waitqueue instead as we did previously.

Change-Id: I23cbfcca867bed7b86007e22137d0a8fad4b4001
Signed-off-by: Martijn Coenen <maco@google.com>
drivers/android/binder.c