All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/vmscan: fix comment logic in balance_pgdat
@ 2026-08-21  0:51 Enlin Mu
  2026-08-21  3:41 ` Johannes Weiner
  0 siblings, 1 reply; 2+ messages in thread
From: Enlin Mu @ 2026-08-21  0:51 UTC (permalink / raw)
  To: akpm, kasong, qi.zheng, shakeel.butt, baohua, axelrasmussen,
	yuanchu, weixugc, hannes, david, mhocko, ljs, linux-mm,
	linux-kernel, enlin.mu, enlin.mu

In balance_pgdat(), when the low watermark is met, processes sleeping on
pfmemalloc_wait are woken up because they are able to safely make forward
progress.

However, the comment incorrectly states "they should not be able",
which contradicts the actual code behavior. Fix this typo to accurately
reflect the logic.

No functional changes are introduced.

Signed-off-by: Enlin Mu <enlin.mu@unisoc.com>
Signed-off-by: Enlin Mu <enlin.mu@linux.dev>
---
 mm/vmscan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 35c3bb15ae96..822f73758c42 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -7188,7 +7188,7 @@ static int balance_pgdat(pg_data_t *pgdat, int order, int highest_zoneidx)
 
 		/*
 		 * If the low watermark is met there is no need for processes
-		 * to be throttled on pfmemalloc_wait as they should not be
+		 * to be throttled on pfmemalloc_wait as they should be
 		 * able to safely make forward progress. Wake them
 		 */
 		if (waitqueue_active(&pgdat->pfmemalloc_wait) &&
-- 
2.39.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mm/vmscan: fix comment logic in balance_pgdat
  2026-08-21  0:51 [PATCH] mm/vmscan: fix comment logic in balance_pgdat Enlin Mu
@ 2026-08-21  3:41 ` Johannes Weiner
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Weiner @ 2026-08-21  3:41 UTC (permalink / raw)
  To: Enlin Mu
  Cc: akpm, kasong, qi.zheng, shakeel.butt, baohua, axelrasmussen,
	yuanchu, weixugc, david, mhocko, ljs, linux-mm, linux-kernel,
	enlin.mu

On Fri, Aug 21, 2026 at 08:51:07AM +0800, Enlin Mu wrote:
> In balance_pgdat(), when the low watermark is met, processes sleeping on
> pfmemalloc_wait are woken up because they are able to safely make forward
> progress.
> 
> However, the comment incorrectly states "they should not be able",
> which contradicts the actual code behavior. Fix this typo to accurately
> reflect the logic.
> 
> No functional changes are introduced.
> 
> Signed-off-by: Enlin Mu <enlin.mu@unisoc.com>
> Signed-off-by: Enlin Mu <enlin.mu@linux.dev>
> ---
>  mm/vmscan.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 35c3bb15ae96..822f73758c42 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -7188,7 +7188,7 @@ static int balance_pgdat(pg_data_t *pgdat, int order, int highest_zoneidx)
>  
>  		/*
>  		 * If the low watermark is met there is no need for processes
> -		 * to be throttled on pfmemalloc_wait as they should not be
> +		 * to be throttled on pfmemalloc_wait as they should be

Pretty sure this was supposed to be "now" instead of "not". That would
make more sense than removing it, since this is about the watermark
check after kswapd has performed reclaim.

>  		 * able to safely make forward progress. Wake them
>  		 */
>  		if (waitqueue_active(&pgdat->pfmemalloc_wait) &&


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-21  3:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-21  0:51 [PATCH] mm/vmscan: fix comment logic in balance_pgdat Enlin Mu
2026-08-21  3:41 ` Johannes Weiner

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.