Re: [PATCH v3 4/5] rust: sync: condvar: use task::schedule_timeout()

From: Gary Guo

Date: Wed Nov 18 2026 - 07:50:49 EST


On Tue Nov 17, 2026 at 12:14 AM GMT, Danilo Krummrich wrote:
> Convert CondVar::wait_internal() from calling
> bindings::schedule_timeout() directly to using the safe
> task::schedule_timeout() wrapper. This removes the unsafe call from
> CondVar.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>

> ---
> rust/kernel/sync/condvar.rs | 42 ++++++++++++++++++-------------------
> 1 file changed, 20 insertions(+), 22 deletions(-)