diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-04-20 21:04:19 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-04-21 14:55:43 +0300 |
commit | 2ea46c6fc9452ac100ad907b051d797225847e33 (patch) | |
tree | 0a9d8f9939f6a0f67aba2390289482b79a0c2301 /kernel/kthread.c | |
parent | 3a7956e25e1d7b3c148569e78895e1f3178122a9 (diff) | |
download | linux-2ea46c6fc9452ac100ad907b051d797225847e33.tar.xz |
cpumask/hotplug: Fix cpu_dying() state tracking
Vincent reported that for states with a NULL startup/teardown function
we do not call cpuhp_invoke_callback() (because there is none) and as
such we'll not update the cpu_dying() state.
The stale cpu_dying() can eventually lead to triggering BUG().
Rectify this by updating cpu_dying() in the exact same places the
hotplug machinery tracks its directional state, namely
cpuhp_set_state() and cpuhp_reset_state().
Reported-by: Vincent Donnefort <vincent.donnefort@arm.com>
Suggested-by: Vincent Donnefort <vincent.donnefort@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Donnefort <vincent.donnefort@arm.com>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/YH7r+AoQEReSvxBI@hirez.programming.kicks-ass.net
Diffstat (limited to 'kernel/kthread.c')
0 files changed, 0 insertions, 0 deletions