FROMLIST: binder: guarantee txn complete / errors delivered in-order
authorTodd Kjos <tkjos@google.com>
Sat, 22 Apr 2017 00:35:12 +0000 (17:35 -0700)
committerTodd Kjos <tkjos@google.com>
Thu, 13 Jul 2017 15:34:20 +0000 (08:34 -0700)
commit858b8da08ace1dc4ab450971f98c0211a1eada02
treea4de733f5d236f4ee99915040533af2c2874ad69
parent21ef40a9d8c5ab68729263e507102cb416a6dfb2
FROMLIST: binder: guarantee txn complete / errors delivered in-order

(from https://patchwork.kernel.org/patch/9817805/)

Since errors are tracked in the return_error/return_error2
fields of the binder_thread object and BR_TRANSACTION_COMPLETEs
can be tracked either in those fields or via the thread todo
work list, it is possible for errors to be reported ahead
of the associated txn complete.

Use the thread todo work list for errors to guarantee
order. Also changed binder_send_failed_reply to pop
the transaction even if it failed to send a reply.

Change-Id: Ibf93b412b6236812d415bc10fec8b43826948eaa
Signed-off-by: Todd Kjos <tkjos@google.com>
drivers/android/binder.c