aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2021-08-15 21:29:20 +0000
committerIngo Molnar <[email protected]>2021-08-17 17:06:02 +0000
commit51711e825a6d1b2fe7ca46bb06d08c25d97656ee (patch)
treeffbfd0a341e7715922ad5ce909d5754b8efb5d6c /lib/string_helpers.c
parentfutex: Prevent requeue_pi() lock nesting issue on RT (diff)
downloadkernel-51711e825a6d1b2fe7ca46bb06d08c25d97656ee.tar.gz
kernel-51711e825a6d1b2fe7ca46bb06d08c25d97656ee.zip
locking/rtmutex: Prevent lockdep false positive with PI futexes
On PREEMPT_RT the futex hashbucket spinlock becomes 'sleeping' and rtmutex based. That causes a lockdep false positive because some of the futex functions invoke spin_unlock(&hb->lock) with the wait_lock of the rtmutex associated to the pi_futex held. spin_unlock() in turn takes wait_lock of the rtmutex on which the spinlock is based which makes lockdep notice a lock recursion. Give the futex/rtmutex wait_lock a separate key. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions