]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: sync: condvar: Add wait_interruptible_freezable()
authorAlice Ryhl <aliceryhl@google.com>
Fri, 7 Mar 2025 23:26:59 +0000 (15:26 -0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 7 Mar 2025 23:55:04 +0000 (00:55 +0100)
commit70b9c8563c9c29102a785d4822f0d77d33fee808
tree910628e5d0d00c7fd373d30873e752324734f13a
parentc2849afafd08a1c3ad881129de48ebe1642f7675
rust: sync: condvar: Add wait_interruptible_freezable()

To support waiting for a `CondVar` as a freezable process, add a
wait_interruptible_freezable() function.

Binder needs this function in the appropriate places to freeze a process
where some of its threads are blocked on the Binder driver.

[ Boqun: Cleaned up the changelog and documentation. ]

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250307232717.1759087-10-boqun.feng@gmail.com
rust/kernel/sync/condvar.rs
rust/kernel/task.rs