smp: Warn on function calls from softirq context
authorPeter Zijlstra <peterz@infradead.org>
Thu, 18 Jul 2019 09:20:09 +0000 (11:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 20 Jul 2019 09:27:16 +0000 (11:27 +0200)
commit19dbdcb8039cff16669a05136a29180778d16d0a
treea03d0d84fb3a5ff58df3c4da7bbd16acca5518a0
parent22051d9c4a57d3b4a8b5a7407efc80c71c7bfb16
smp: Warn on function calls from softirq context

It's clearly documented that smp function calls cannot be invoked from
softirq handling context. Unfortunately nothing enforces that or emits a
warning.

A single function call can be invoked from softirq context only via
smp_call_function_single_async().

The only legit context is task context, so add a warning to that effect.

Reported-by: luferry <luferry@163.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190718160601.GP3402@hirez.programming.kicks-ass.net
kernel/smp.c