diff options
| author | Kumar Kartikeya Dwivedi <[email protected]> | 2025-03-16 04:05:32 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-03-19 15:03:05 +0000 |
| commit | 101acd2e78b1b63708ca527ca98e57b1ff2a9534 (patch) | |
| tree | 0f19a9d3f2a0325e9344f15f16aab4722c44a0ef /lib/netdev-notifier-error-inject.c | |
| parent | rqspinlock: Add basic support for CONFIG_PARAVIRT (diff) | |
| download | kernel-101acd2e78b1b63708ca527ca98e57b1ff2a9534.tar.gz kernel-101acd2e78b1b63708ca527ca98e57b1ff2a9534.zip | |
rqspinlock: Add macros for rqspinlock usage
Introduce helper macros that wrap around the rqspinlock slow path and
provide an interface analogous to the raw_spin_lock API. Note that
in case of error conditions, preemption and IRQ disabling is
automatically unrolled before returning the error back to the caller.
Ensure that in absence of CONFIG_QUEUED_SPINLOCKS support, we fallback
to the test-and-set implementation.
Add some comments describing the subtle memory ordering logic during
unlock, and why it's safe.
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
