[GIT PULL] [PATCH 0/9] Locking changes for v6.17

From: Boqun Feng
Date: Wed Jul 16 2025 - 10:50:15 EST


Hi Ingo & Peter,

Please pull the lockdep changes for v6.17 into tip. One thing to notice
is that I would like to add Breno Leitao's workaround in
lockdep_unregister_key(), since the alternative requires hazptr and I'm
not near to get it done. I added comments explaining this and left a
TODO there, and I will replace it once the shazptr patch is in a good
shape. Peter, if you have any concern about it, either we can drop the
patch #9 or I can create another tag. Thanks!

The following changes since commit 7ff495e26a39f3e7a3d4058df59b5b6d6f943cab:

local_lock: Move this_cpu_ptr() notation from internal to main header (2025-06-30 17:45:35 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git tags/lockdep-for-tip.2025.07.16

for you to fetch changes up to 7a3cedafccf8e7d038ad4cfec5b38052647ceac5:

lockdep: Speed up lockdep_unregister_key() with expedited RCU synchronization (2025-07-14 21:57:29 -0700)

----------------------------------------------------------------
Locking changes for v6.17:

- General
- Mark devm_mutex_init() as __must_check
- Add #[must_use] to Lock::try_lock()
- Remove OWNER_SPINNABLE in rwsem
- Remove redundant #ifdefs in mutex
- Lockdep
- Avoid returning struct in lock_stats()
- Change `static const` into enum for LOCKF_*_IRQ_*
- Temporarily use synchronize_rcu_expedited() in
lockdep_unregister_key() to speed things up.

----------------------------------------------------------------

Regards,
Boqun

Arnd Bergmann (2):
locking/lockdep: Avoid struct return in lock_stats()
locking/lockdep: Change 'static const' variables to enum values

Breno Leitao (1):
lockdep: Speed up lockdep_unregister_key() with expedited RCU synchronization

Jason Devers (1):
rust: sync: Add #[must_use] to Lock::try_lock()

Jinliang Zheng (1):
locking/rwsem: Use OWNER_NONSPINNABLE directly instead of OWNER_SPINNABLE

Ran Xiaokai (1):
locking/mutex: Remove redundant #ifdefs

Thomas Weißschuh (3):
spi: spi-nxp-fspi: Check return value of devm_mutex_init()
leds: lp8860: Check return value of devm_mutex_init()
locking/mutex: Mark devm_mutex_init() as __must_check

drivers/leds/leds-lp8860.c | 4 +++-
drivers/spi/spi-nxp-fspi.c | 4 +++-
include/linux/lockdep_types.h | 2 +-
include/linux/mutex.h | 11 +++++++----
kernel/locking/lockdep.c | 39 +++++++++++++++++++++-----------------
kernel/locking/lockdep_internals.h | 18 ++++++++++--------
kernel/locking/lockdep_proc.c | 2 +-
kernel/locking/mutex.c | 4 ----
kernel/locking/rwsem.c | 4 +---
rust/kernel/sync/lock.rs | 2 ++
10 files changed, 50 insertions(+), 40 deletions(-)
--
2.39.5 (Apple Git-154)