Files
linux-stable-mirror/rust/kernel
Lyude Paul 5967f4df55 rust: sync: Add SpinLockIrq
A variant of `SpinLock` that ensures interrupts are disabled in the
critical section. `lock()` will ensure that either interrupts are
already disabled or disable them. `unlock()` will reverse the respective
operation.

[Boqun: Port to use spin_lock_irq_disable() and
spin_unlock_irq_enable()]

Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Boqun Feng <boqun@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260807070218.27144-18-boqun@kernel.org
2026-08-10 12:53:10 +02:00
..
2026-08-10 12:53:10 +02:00
2026-04-03 11:57:35 +02:00
2026-05-20 00:47:24 +02:00
2026-06-09 04:13:21 +02:00
2026-08-10 12:53:09 +02:00
2026-08-10 12:53:09 +02:00
2026-05-25 09:40:52 +05:30
2026-08-10 12:53:10 +02:00