]> www.infradead.org Git - users/willy/xarray.git/commit
rust: sync: Makes `CondVar::wait()` an uninterruptible wait
authorBoqun Feng <boqun.feng@gmail.com>
Thu, 14 Dec 2023 20:04:21 +0000 (12:04 -0800)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 21 Dec 2023 19:54:17 +0000 (20:54 +0100)
commit0a7f5ba73e57eaf7f2e5589d26bbe9bf6754c542
tree321a171a7669428244ea5b3dd7c70941fd6a1c3d
parent80fe9e51510b23472ad0f97175556490549ed714
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: Tiago Lam <tiagolam@gmail.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Tiago Lam <tiagolam@gmail.com>
Link: https://lore.kernel.org/r/20231214200421.690629-1-boqun.feng@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/sync/condvar.rs