Re: [PATCH v2] mm/vmstat: fix vmstat_shepherd double-scheduling vmstat_update
From: Andrew Morton
Date: Thu Apr 09 2026 - 11:50:31 EST
On Thu, 09 Apr 2026 05:26:36 -0700 Breno Leitao <leitao@xxxxxxxxxx> wrote:
> vmstat_shepherd uses delayed_work_pending() to check whether
> vmstat_update is already scheduled for a given CPU before queuing it.
> However, delayed_work_pending() only tests WORK_STRUCT_PENDING_BIT,
> which is cleared the moment a worker thread picks up the work to
> execute it.
Thanks, I tentatively added this to the 7.1-rc1 queue, to upstream ~2
weeks hence.