diff options
| author | Boqun Feng <[email protected]> | 2023-12-14 20:04:21 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2023-12-21 19:54:17 +0000 |
| commit | 0a7f5ba73e57eaf7f2e5589d26bbe9bf6754c542 (patch) | |
| tree | 321a171a7669428244ea5b3dd7c70941fd6a1c3d /rust/macros/lib.rs | |
| parent | rust: upgrade to Rust 1.74.1 (diff) | |
| download | kernel-0a7f5ba73e57eaf7f2e5589d26bbe9bf6754c542.tar.gz kernel-0a7f5ba73e57eaf7f2e5589d26bbe9bf6754c542.zip | |
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 <[email protected]>
Signed-off-by: Boqun Feng <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Tiago Lam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/lib.rs')
0 files changed, 0 insertions, 0 deletions
