]> git.baikalelectronics.ru Git - kernel.git/commit
locking/lockdep, cpu/hotplug: Annotate AP thread
authorPeter Zijlstra <peterz@infradead.org>
Tue, 11 Sep 2018 09:51:27 +0000 (11:51 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Sep 2018 18:01:03 +0000 (20:01 +0200)
commit824ce89e382070dde7c63e7abdc06d13cdfb8b16
tree235d836c029b9c8213897ab723130b1393558db5
parenta4adb76bce17c1f45b6e98e7f4a47a92afb72891
locking/lockdep, cpu/hotplug: Annotate AP thread

Anybody trying to assert the cpu_hotplug_lock is held (lockdep_assert_cpus_held())
from AP callbacks will fail, because the lock is held by the BP.

Stick in an explicit annotation in cpuhp_thread_fun() to make this work.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-tip-commits@vger.kernel.org
Fixes: c888a46eee2c ("jump_label/lockdep: Assert we hold the hotplug lock for _cpuslocked() operations")
Link: http://lkml.kernel.org/r/20180911095127.GT24082@hirez.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/cpu.c