[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1663325892-9825-1-git-send-email-zhaoyang.huang@unisoc.com>
Date: Fri, 16 Sep 2022 18:58:12 +0800
From: "zhaoyang.huang" <zhaoyang.huang@...soc.com>
To: Mel Gorman <mgorman@...hsingularity.net>,
Andrew Morton <akpm@...ux-foundation.org>,
Zhaoyang Huang <huangzhaoyang@...il.com>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>, <ke.wang@...soc.com>
Subject: [RFC PATCH] mm: check global free_list if there is ongoing reclaiming when pcp fail
From: Zhaoyang Huang <zhaoyang.huang@...soc.com>
Check the global free list again even if rmqueue_bulk failed for pcp pages when
there is ongoing reclaiming, which could eliminate potential direct reclaim by
chance.
Signed-off-by: Zhaoyang Huang <zhaoyang.huang@...soc.com>
---
mm/page_alloc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index e008a3d..7e99f7d 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3729,7 +3729,8 @@ struct page *rmqueue(struct zone *preferred_zone,
migratetype != MIGRATE_MOVABLE) {
page = rmqueue_pcplist(preferred_zone, zone, order,
gfp_flags, migratetype, alloc_flags);
- goto out;
+ if (page || !test_bit(ZONE_RECLAIM_ACTIVE, &zone->flags))
+ goto out;
}
}
--
1.9.1
Powered by blists - more mailing lists