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)
commitcb92173d1f0474784c6171a9d3fdbbca0ee53554
tree235d836c029b9c8213897ab723130b1393558db5
parent84818af26350c245c8e1994493b7459c0822be5b
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: cb538267ea1e ("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