Re: [PATCH] mm/vmscan: clear hopeless kswapd when global direct reclaim makes progress

From: Michal Hocko

Date: Wed Jul 15 2026 - 03:13:00 EST


On Tue 14-07-26 19:32:04, Altan Hacigumus wrote:
> On Tue, Jul 14, 2026 at 4:34 AM Michal Hocko <mhocko@xxxxxxxx> wrote:
[...]
> [2] Also, there is one more condition I've been looking at, from the
> Sashiko review (a theoretical corner): skip the reset while tasks are
> throttled on pfmemalloc_wait, so that it cannot defer the hopeless
> escape hatch in allow_direct_reclaim().

I would keep this a separate patch with separate reasoning. Ideally with
some way to trigger the behavior and prove it makes any practical
meaning. Theoretical corner cases might backfire in this rather
convoluted area.

--
Michal Hocko
SUSE Labs