[GIT PULL] locking changes for v6.1

From: Ingo Molnar
Date: Fri Oct 07 2022 - 04:12:23 EST


Linus,

Please pull the latest locking/core git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-core-2022-10-07

# HEAD: 76e64c73db9542ff4bae8a60f4f32e38f3799b95 locking/lockdep: Print more debug information - report name and key when look_up_lock_class() got confused

Locking changes for v6.1:

- Disable preemption in rwsem_write_trylock()'s attempt to
take the rwsem, to avoid RT tasks hogging the CPU, which
managed to preempt this function after the owner has
been cleared but before a new owner is set. Also add
debug checks to enforce this.

- Add __lockfunc to more slow path functions and add
__sched to semaphore functions.

- Mark spinlock APIs noinline when the respective CONFIG_INLINE_SPIN_*
toggles are disabled, to reduce LTO text size.

- Print more debug information when lockdep gets confused
in look_up_lock_class().

- Improve header file abuse checks.

- Misc cleanups

Thanks,

Ingo

------------------>
Andi Kleen (1):
locking/spinlocks: Mark spinlocks noinline when inline spinlocks are disabled

Gokul krishna Krishnakumar (1):
locking/rwsem: Disable preemption while trying for rwsem lock

Namhyung Kim (2):
locking: Add __lockfunc to slow path functions
locking: Add __sched to semaphore functions

Sebastian Andrzej Siewior (1):
locking: Detect includes rwlock.h outside of spinlock.h

Slark Xiao (1):
selftests: futex: Fix 'the the' typo in comment

Tetsuo Handa (1):
locking/lockdep: Print more debug information - report name and key when look_up_lock_class() got confused


arch/x86/include/asm/qspinlock_paravirt.h | 13 ++---
include/linux/rwlock.h | 2 +-
include/linux/spinlock.h | 2 +
include/linux/spinlock_api_smp.h | 2 +-
include/linux/spinlock_api_up.h | 2 +-
include/linux/spinlock_rt.h | 2 +-
include/linux/spinlock_up.h | 2 +-
kernel/locking/lockdep.c | 6 ++-
kernel/locking/qrwlock.c | 4 +-
kernel/locking/qspinlock.c | 2 +-
kernel/locking/qspinlock_paravirt.h | 4 +-
kernel/locking/rwsem.c | 14 +++++-
kernel/locking/semaphore.c | 12 ++---
kernel/locking/spinlock.c | 56 +++++++++++-----------
.../functional/futex_requeue_pi_signal_restart.c | 2 +-
15 files changed, 70 insertions(+), 55 deletions(-)