Merge tag 'locking-core-2022-10-07' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking updates from Ingo Molnar: - 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 * tag 'locking-core-2022-10-07' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: locking/lockdep: Print more debug information - report name and key when look_up_lock_class() got confused locking: Add __sched to semaphore functions locking/rwsem: Disable preemption while trying for rwsem lock locking: Detect includes rwlock.h outside of spinlock.h locking: Add __lockfunc to slow path functions locking/spinlocks: Mark spinlocks noinline when inline spinlocks are disabled selftests: futex: Fix 'the the' typo in comment
Showing
- arch/x86/include/asm/qspinlock_paravirt.h 7 additions, 6 deletionsarch/x86/include/asm/qspinlock_paravirt.h
- include/linux/rwlock.h 1 addition, 1 deletioninclude/linux/rwlock.h
- include/linux/spinlock.h 2 additions, 0 deletionsinclude/linux/spinlock.h
- include/linux/spinlock_api_smp.h 1 addition, 1 deletioninclude/linux/spinlock_api_smp.h
- include/linux/spinlock_api_up.h 1 addition, 1 deletioninclude/linux/spinlock_api_up.h
- include/linux/spinlock_rt.h 1 addition, 1 deletioninclude/linux/spinlock_rt.h
- include/linux/spinlock_up.h 1 addition, 1 deletioninclude/linux/spinlock_up.h
- kernel/locking/lockdep.c 4 additions, 2 deletionskernel/locking/lockdep.c
- kernel/locking/qrwlock.c 2 additions, 2 deletionskernel/locking/qrwlock.c
- kernel/locking/qspinlock.c 1 addition, 1 deletionkernel/locking/qspinlock.c
- kernel/locking/qspinlock_paravirt.h 2 additions, 2 deletionskernel/locking/qspinlock_paravirt.h
- kernel/locking/rwsem.c 12 additions, 2 deletionskernel/locking/rwsem.c
- kernel/locking/semaphore.c 6 additions, 6 deletionskernel/locking/semaphore.c
- kernel/locking/spinlock.c 28 additions, 28 deletionskernel/locking/spinlock.c
- tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c 1 addition, 1 deletion...ftests/futex/functional/futex_requeue_pi_signal_restart.c
Loading
Please register or sign in to comment