Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "vmstat: disable vmstat_work on vmstat_cpu_down_prep()"

This reverts commit adcfb264c3ed51fbbf5068ddf10d309a63683868.

It turns out this just causes a different warning splat instead that
seems to be much easier to trigger, so let's revert ASAP.

Reported-and-bisected-by: Borislav Petkov <bp@alien8.de>
Tested-by: Breno Leitao <leitao@debian.org>
Reported-by: Alexander Gordeev <agordeev@linux.ibm.com>
Link: https://lore.kernel.org/all/20250106131817.GAZ3vYGVr3-hWFFPLj@fat_crate.local/
Cc: Koichiro Den <koichiro.den@canonical.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+1 -2
+1 -2
mm/vmstat.c
··· 2148 2148 if (!node_state(cpu_to_node(cpu), N_CPU)) { 2149 2149 node_set_state(cpu_to_node(cpu), N_CPU); 2150 2150 } 2151 - enable_delayed_work(&per_cpu(vmstat_work, cpu)); 2152 2151 2153 2152 return 0; 2154 2153 } 2155 2154 2156 2155 static int vmstat_cpu_down_prep(unsigned int cpu) 2157 2156 { 2158 - disable_delayed_work_sync(&per_cpu(vmstat_work, cpu)); 2157 + cancel_delayed_work_sync(&per_cpu(vmstat_work, cpu)); 2159 2158 return 0; 2160 2159 } 2161 2160