All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baolin Wang <baolin.wang@linux.alibaba.com>
To: Zelin Deng <zelin.deng@linux.alibaba.com>,
	linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
	"hannes@cmpxchg.org >> Johannes Weiner" <hannes@cmpxchg.org>,
	Kairui Song <kasong@tencent.com>
Cc: stable@vger.kernel.org, Qi Zheng <qi.zheng@linux.dev>,
	Michal Hocko <mhocko@kernel.org>,
	Shakeel Butt <shakeel.butt@linux.dev>,
	Barry Song <baohua@kernel.org>,
	Axel Rasmussen <axelrasmussen@google.com>,
	Yuanchu Xie <yuanchu@google.com>, Wei Xu <weixugc@google.com>,
	Baoquan He <baoquan.he@linux.dev>
Subject: Re: [PATCH] mm: vmscan: fix inverted free page check in allow_direct_reclaim()
Date: Tue, 1 Dec 2026 15:31:40 +0800	[thread overview]
Message-ID: <908d52b3-07d0-4977-91c3-cf63ec073489@linux.alibaba.com> (raw)
In-Reply-To: <20261130064652.184634-1-zelin.deng@linux.alibaba.com>

CC more relevant people

On 11/30/26 2:46 PM, Zelin Deng wrote:
> Commit 4bd22a7ae574 ("mm: fix duplicate accounting of free pages in
> should_reclaim_retry()") removed the free-page fallback from
> zone_reclaimable_pages() and added an explicit check in
> allow_direct_reclaim().
> 
> Before that change, allow_direct_reclaim() skipped a zone only when it had
> neither reclaimable nor free pages. The new check was inverted: it skips a
> zone when it has no reclaimable pages but does have free pages. It also
> keeps a zone that has neither, adding its watermark without adding any free
> pages.
> 
> As a result, allow_direct_reclaim() can keep returning false and leave
> direct reclaimers throttled even though free pages are available.
> 
> Negate the free-page test to restore the previous behavior while keeping
> free pages out of zone_reclaimable_pages().
> 
> Fixes: 4bd22a7ae574 ("mm: fix duplicate accounting of free pages in should_reclaim_retry()")
> Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
> Cc: stable@vger.kernel.org
> Signed-off-by: Zelin Deng <zelin.deng@linux.alibaba.com>
> ---

The fix looks good to me.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>


  reply	other threads:[~2026-12-01  7:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  6:46 [PATCH] mm: vmscan: fix inverted free page check in allow_direct_reclaim() Zelin Deng
2026-12-01  7:31 ` Baolin Wang [this message]
2026-12-01  8:28 ` + mm-vmscan-fix-inverted-free-page-check-in-allow_direct_reclaim.patch added to mm-new branch Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=908d52b3-07d0-4977-91c3-cf63ec073489@linux.alibaba.com \
    --to=baolin.wang@linux.alibaba.com \
    --cc=akpm@linux-foundation.org \
    --cc=axelrasmussen@google.com \
    --cc=baohua@kernel.org \
    --cc=baoquan.he@linux.dev \
    --cc=hannes@cmpxchg.org \
    --cc=kasong@tencent.com \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=qi.zheng@linux.dev \
    --cc=shakeel.butt@linux.dev \
    --cc=stable@vger.kernel.org \
    --cc=weixugc@google.com \
    --cc=yuanchu@google.com \
    --cc=zelin.deng@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.