diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2026-07-07 10:43:12 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-17 15:20:45 +0200 |
| commit | e5e86df8b666152bc99fab4be0906b92a271964d (patch) | |
| tree | 0f586ecf771f7caa003d7c1a7065d103293a9d29 /drivers/android | |
| parent | f14e0c8183bc73c5ca0ad93670b5b74c71d86df2 (diff) | |
| download | linux-e5e86df8b666152bc99fab4be0906b92a271964d.tar.gz linux-e5e86df8b666152bc99fab4be0906b92a271964d.zip | |
rust: poll: use kfree_rcu() for PollCondVar
Rust Binder currently uses PollCondVar, but it calls synchronize_rcu()
in the destructor, which we would like to avoid. Add a variation of
PollCondVar that kfree_rcu() instead.
One could avoid the `rcu` field and allocate the rcu_head on drop using
a fallback to synchronize_rcu() on ENOMEM. However, I'd prefer to avoid
the potential for synchronize_rcu(), and Binder will only use this for a
small fraction of processes, so even if it changes which kmalloc bucket
it falls into, the extra memory is not a problem.
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Boqun Feng <boqun@kernel.org>
Link: https://patch.msgid.link/20260707-upgrade-poll-v6-1-4b8fae7bf1d9@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android')
0 files changed, 0 insertions, 0 deletions
