Re: [PATCH v2] mm/vmstat: fix vmstat_shepherd double-scheduling vmstat_update

Andrew Morton
2026-04-09T15:47:21Z

On Thu, 09 Apr 2026 05:26:36 -0700 Breno Leitao <leitao@debian.org> 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.