From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx103.postini.com [74.125.245.103]) by kanga.kvack.org (Postfix) with SMTP id 0F77D6B0044 for ; Tue, 16 Jul 2013 09:42:04 -0400 (EDT) From: Andrea Arcangeli Subject: [PATCH 08/10] mm: zone_reclaim: only run zone_reclaim in the fast path Date: Tue, 16 Jul 2013 15:41:52 +0200 Message-Id: <1373982114-19774-9-git-send-email-aarcange@redhat.com> In-Reply-To: <1373982114-19774-1-git-send-email-aarcange@redhat.com> References: <1373982114-19774-1-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: Mel Gorman , Rik van Riel , Hugh Dickins , Richard Davies , Shaohua Li , Rafael Aquini , Hush Bensen Don't repeat direct reclaim when we enter the regular reclaim slowpath under the min watermark. Signed-off-by: Andrea Arcangeli --- 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 f5ea1147..0519181 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1941,7 +1941,8 @@ zonelist_scan: } if (zone_reclaim_mode == 0 || - !zone_allows_reclaim(preferred_zone, zone)) + !zone_allows_reclaim(preferred_zone, zone) || + !(alloc_flags & ALLOC_WMARK_LOW)) goto this_zone_full; /* -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org