aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2025-03-16 04:05:29 +0000
committerAlexei Starovoitov <[email protected]>2025-03-19 15:03:05 +0000
commitc9102a68c070134ade5c941d7315481a77bcea53 (patch)
tree264d6bf0f79d4a80e07e48fe686ed28d52c1d8f6 /lib/netdev-notifier-error-inject.c
parentrqspinlock: Add deadlock detection and recovery (diff)
downloadkernel-c9102a68c070134ade5c941d7315481a77bcea53.tar.gz
kernel-c9102a68c070134ade5c941d7315481a77bcea53.zip
rqspinlock: Add a test-and-set fallback
Include a test-and-set fallback when queued spinlock support is not available. Introduce a rqspinlock type to act as a fallback when qspinlock support is absent. Include ifdef guards to ensure the slow path in this file is only compiled when CONFIG_QUEUED_SPINLOCKS=y. Subsequent patches will add further logic to ensure fallback to the test-and-set implementation when queued spinlock support is unavailable on an architecture. Unlike other waiting loops in rqspinlock code, the one for test-and-set has no theoretical upper bound under contention, therefore we need a longer timeout than usual. Bump it up to a second in this case. 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