Re: [PATCH v3 5/5] rust: sync: condvar: add non-exclusive freezable waiting
From: Gary Guo
Date: Wed Nov 18 2026 - 05:49:51 EST
On Tue Nov 17, 2026 at 12:14 AM GMT, Danilo Krummrich wrote:
> CondVar currently registers all sleeping tasks as exclusive waiters.
> Add wait_interruptible_freezable_nonexclusive() for callers that need
> non-exclusive waits, using WaitQueue::wait_once().
>
> Document that notify_one() and notify_sync() also wake all non-exclusive
> waiters.
>
> This provides non-exclusive waiting support for a subsequent Binder
> conversion.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>
> ---
> rust/kernel/sync/condvar.rs | 29 +++++++++++++++++++++++++++--
> rust/kernel/sync/wait.rs | 1 -
> 2 files changed, 27 insertions(+), 3 deletions(-)