Linux/linux 19dbdcbkernel smp.c

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 at 163.com>
Signed-off-by: Peter Zijlstra <peterz at infradead.org>
Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
Link: https://lkml.kernel.org/r/20190718160601.GP3402@hirez.programming.kicks-ass.net
DeltaFile
+16-0kernel/smp.c
+16-01 files

UnifiedSplitRaw