ANDROID: binder: push new transactions to waiting threads.
authorMartijn Coenen <maco@android.com>
Thu, 31 Aug 2017 08:04:19 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Sep 2017 07:20:13 +0000 (09:20 +0200)
commit408c68b17aea2f23236cdb49b6c060e0ded846ed
treee09d52ca9dabe777583ca37e7a10e5f6b210768e
parent1b77e9dcc3da9359f5936a7a4a0b5b6585c5e37e
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.

Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c