Skip to content

Commit d120d00

Browse files
Peter Zijlstragregkh
authored andcommitted
locking/lockdep: Avoid RCU-induced noinstr fail
[ Upstream commit ce0b9c8 ] vmlinux.o: warning: objtool: look_up_lock_class()+0xc7: call to rcu_read_lock_any_held() leaves .noinstr.text section Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210624095148.311980536@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a244da2 commit d120d00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/locking/lockdep.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass)
888888
if (DEBUG_LOCKS_WARN_ON(!irqs_disabled()))
889889
return NULL;
890890

891-
hlist_for_each_entry_rcu(class, hash_head, hash_entry) {
891+
hlist_for_each_entry_rcu_notrace(class, hash_head, hash_entry) {
892892
if (class->key == key) {
893893
/*
894894
* Huh! same key, different name? Did someone trample

0 commit comments

Comments
 (0)