Skip to content

Commit cd6313b

Browse files
committed
Revert "vmstat: disable vmstat_work on vmstat_cpu_down_prep()"
This reverts commit adcfb26. 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 parent 9d89551 commit cd6313b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mm/vmstat.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,14 +2148,13 @@ static int vmstat_cpu_online(unsigned int cpu)
21482148
if (!node_state(cpu_to_node(cpu), N_CPU)) {
21492149
node_set_state(cpu_to_node(cpu), N_CPU);
21502150
}
2151-
enable_delayed_work(&per_cpu(vmstat_work, cpu));
21522151

21532152
return 0;
21542153
}
21552154

21562155
static int vmstat_cpu_down_prep(unsigned int cpu)
21572156
{
2158-
disable_delayed_work_sync(&per_cpu(vmstat_work, cpu));
2157+
cancel_delayed_work_sync(&per_cpu(vmstat_work, cpu));
21592158
return 0;
21602159
}
21612160

0 commit comments

Comments
 (0)