]> git.baikalelectronics.ru Git - kernel.git/commit
locking/lockdep: Fix lockdep_init_map_*() confusion
authorPeter Zijlstra <peterz@infradead.org>
Fri, 17 Jun 2022 13:26:06 +0000 (15:26 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 24 Jun 2022 07:48:56 +0000 (09:48 +0200)
commit800d9b47292f412b0b07c2e81f99018847f1056d
treebfb9aa2ec7b1f4d7bec5420e6a58c998375b333e
parenta0547a1c65c28d87880dbf0b17853c3bb247187d
locking/lockdep: Fix lockdep_init_map_*() confusion

Commit 45455c41b2fa ("locking/lockdep: Mark local_lock_t") added yet
another lockdep_init_map_*() variant, but forgot to update all the
existing users of the most complicated version.

This could lead to a loss of lock_type and hence an incorrect report.
Given the relative rarity of both local_lock and these annotations,
this is unlikely to happen in practise, still, best fix things.

Fixes: 45455c41b2fa ("locking/lockdep: Mark local_lock_t")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/YqyEDtoan20K0CVD@worktop.programming.kicks-ass.net
include/linux/lockdep.h
kernel/locking/lockdep.c