Re: [PATCH] rust: sync: Makes `CondVar::wait()` an uninterruptible wait
From: Benno Lossin
Date: Wed Dec 20 2023 - 06:12:22 EST
On 12/14/23 21:04, Boqun Feng wrote:
> Currently, `CondVar::wait()` is an interruptible wait, and this is
> different than `wait_event()` in include/linux/wait.h (which is an
> uninterruptible wait). To avoid confusion between different APIs on the
> interruptible/uninterruptible, make `CondVar::wait()` an uninterruptible
> wait same as `wait_event()`, also rename the old `wait()` to
> `CondVar::wait_interruptible()`.
>
> Spotted-by: Tiago Lam <tiagolam@xxxxxxxxx>
> Signed-off-by: Boqun Feng <boqun.feng@xxxxxxxxx>
> ---
Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>
--
Cheers,
Benno