]> git.ipfire.org Git - thirdparty/linux.git/commit
sched/isolation: Flush vmstat workqueues on cpuset isolated partition change
authorFrederic Weisbecker <frederic@kernel.org>
Fri, 13 Jun 2025 12:48:31 +0000 (14:48 +0200)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 3 Feb 2026 14:23:34 +0000 (15:23 +0100)
commitce84ad5e994aea5d41ff47135a71439ad4f54005
tree00cb8a97c3a6948c5f3a76b4b7e487be823b2ef0
parentb7eb4edcc3b5cd7ffdcbd56fa7a12de41b39424d
sched/isolation: Flush vmstat workqueues on cpuset isolated partition change

The HK_TYPE_DOMAIN housekeeping cpumask is now modifiable at runtime.
In order to synchronize against vmstat workqueue to make sure
that no asynchronous vmstat work is still pending or executing on a
newly made isolated CPU, the housekeeping susbsystem must flush the
vmstat workqueues.

This involves flushing the whole mm_percpu_wq workqueue, shared with
LRU drain, introducing here a welcome side effect.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Marco Crivellari <marco.crivellari@suse.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Waiman Long <longman@redhat.com>
Cc: linux-mm@kvack.org
include/linux/vmstat.h
kernel/sched/isolation.c
kernel/sched/sched.h
mm/vmstat.c