diff options
author | Peter Zijlstra <[email protected]> | 2021-04-20 20:04:19 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2021-04-21 13:55:43 +0200 |
commit | 2ea46c6fc9452ac100ad907b051d797225847e33 (patch) | |
tree | 0a9d8f9939f6a0f67aba2390289482b79a0c2301 /include/linux/overflow.h | |
parent | 3a7956e25e1d7b3c148569e78895e1f3178122a9 (diff) |
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 <[email protected]>
Suggested-by: Vincent Donnefort <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Vincent Donnefort <[email protected]>
Reviewed-by: Valentin Schneider <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions