Commit 0f40dd3c authored by Boqun Feng's avatar Boqun Feng Committed by Treehugger Robot
Browse files

UPSTREAM: rust: sync: Makes `CondVar::wait()` an uninterruptible wait



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: default avatarTiago Lam <tiagolam@gmail.com>
Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Reviewed-by: default avatarBenno Lossin <benno.lossin@proton.me>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Reviewed-by: default avatarTiago Lam <tiagolam@gmail.com>
Link: https://lore.kernel.org/r/20231214200421.690629-1-boqun.feng@gmail.com


Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
[ Upstream commit 0a7f5ba7 ]
Change-Id: I79b6f6b1aec24cd7ec46f097683d4177c2190db8
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent 5e2edfbc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment