diff options
| author | Kumar Kartikeya Dwivedi <[email protected]> | 2025-03-16 04:05:30 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-03-19 15:03:05 +0000 |
| commit | ecbd8047526d3e9681043c287dea7bc67ef33eb4 (patch) | |
| tree | e43a42794fc1b248f2040e43b0aa93da7175a270 /lib/netdev-notifier-error-inject.c | |
| parent | rqspinlock: Add a test-and-set fallback (diff) | |
| download | kernel-ecbd8047526d3e9681043c287dea7bc67ef33eb4.tar.gz kernel-ecbd8047526d3e9681043c287dea7bc67ef33eb4.zip | |
rqspinlock: Add basic support for CONFIG_PARAVIRT
We ripped out PV and virtualization related bits from rqspinlock in an
earlier commit, however, a fair lock performs poorly within a virtual
machine when the lock holder is preempted. As such, retain the
virt_spin_lock fallback to test and set lock, but with timeout and
deadlock detection. We can do this by simply depending on the
resilient_tas_spin_lock implementation from the previous patch.
We don't integrate support for CONFIG_PARAVIRT_SPINLOCKS yet, as that
requires more involved algorithmic changes and introduces more
complexity. It can be done when the need arises in the future.
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
