]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6187d992976cb23b93d6ecd8d605ef32bf464a04
treee09d52ca9dabe777583ca37e7a10e5f6b210768e
parent523ea69f47e803d40a44689dd2f743b72decc9fc
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