linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/1] binder: return pending info for frozen async txns
@ 2022-11-03 19:05 Li Li
  2022-11-03 19:05 ` [PATCH v1 1/1] " Li Li
  0 siblings, 1 reply; 4+ messages in thread
From: Li Li @ 2022-11-03 19:05 UTC (permalink / raw)
  To: dualli, gregkh, arve, tkjos, maco, joel, brauner, cmllamas,
	surenb, arnd, masahiroy, devel, linux-kernel, hridya, smoreland
  Cc: kernel-team

From: Li Li <dualli@google.com>

User applications need to know if their binder transactions reach a
frozen process or not. For sync binder calls, Linux kernel already
has a dedicated return value BR_FROZEN_REPLY, indicating this sync
binder transaction will be rejected (similar to BR_DEAD_REPLY) as the
target process is frozen. But for async binder calls, the user space
application doesn't have a way to know if the target process is frozen.

This patch add a new return value, BR_TRANSACTION_PENDING, to fix this
issue. Similar to BR_TRANSACTION_COMPLETE, it means the async binder
transaction has been put in the queue of the target process, but it's
waiting for the target process to be unfrozen.

v1: checkpatch.pl --strict passed

Li Li (1):
  binder: return pending info for frozen async txns

 drivers/android/binder.c            | 23 ++++++++++++++++++++---
 drivers/android/binder_internal.h   |  3 ++-
 include/uapi/linux/android/binder.h |  7 ++++++-
 3 files changed, 28 insertions(+), 5 deletions(-)

-- 
2.38.1.431.g37b22c650d-goog


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-10 19:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03 19:05 [PATCH v1 0/1] binder: return pending info for frozen async txns Li Li
2022-11-03 19:05 ` [PATCH v1 1/1] " Li Li
2022-11-09 22:43   ` Carlos Llamas
2022-11-10 19:53     ` Li Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).