diff options
author | Carlos Llamas <[email protected]> | 2024-01-31 21:53:46 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-01-31 14:08:28 -0800 |
commit | 97830f3c3088638ff90b20dfba2eb4d487bf14d7 (patch) | |
tree | b07d1f7bcab635cd87b8bd911b88a646c0616933 /rust/helpers.c | |
parent | ac9762a74c7ca7cbfcb4c65f5871373653a046ac (diff) |
binder: signal epoll threads of self-work
In (e)poll mode, threads often depend on I/O events to determine when
data is ready for consumption. Within binder, a thread may initiate a
command via BINDER_WRITE_READ without a read buffer and then make use
of epoll_wait() or similar to consume any responses afterwards.
It is then crucial that epoll threads are signaled via wakeup when they
queue their own work. Otherwise, they risk waiting indefinitely for an
event leaving their work unhandled. What is worse, subsequent commands
won't trigger a wakeup either as the thread has pending work.
Fixes: 457b9a6f09f0 ("Staging: android: add binder driver")
Cc: Arve Hjønnevåg <[email protected]>
Cc: Martijn Coenen <[email protected]>
Cc: Alice Ryhl <[email protected]>
Cc: Steven Moreland <[email protected]>
Cc: [email protected] # v4.19+
Signed-off-by: Carlos Llamas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions