path: root/lib
diff options
authorPeter Zijlstra <>2021-04-20 20:04:19 +0200
committerPeter Zijlstra <>2021-04-21 13:55:43 +0200
commit2ea46c6fc9452ac100ad907b051d797225847e33 (patch)
tree0a9d8f9939f6a0f67aba2390289482b79a0c2301 /lib
parent3a7956e25e1d7b3c148569e78895e1f3178122a9 (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 <> Suggested-by: Vincent Donnefort <> Signed-off-by: Peter Zijlstra (Intel) <> Reviewed-by: Vincent Donnefort <> Reviewed-by: Valentin Schneider <> Link:
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions