]> Git Repo - linux.git/commit
smp: Warn on function calls from softirq context
authorPeter Zijlstra <[email protected]>
Thu, 18 Jul 2019 09:20:09 +0000 (11:20 +0200)
committerThomas Gleixner <[email protected]>
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 <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
kernel/smp.c
This page took 0.05408 seconds and 4 git commands to generate.