From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by kanga.kvack.org (Postfix) with ESMTP id 39CEF6B003B for ; Mon, 9 Dec 2013 02:09:22 -0500 (EST) Received: by mail-ee0-f53.google.com with SMTP id b57so1334485eek.40 for ; Sun, 08 Dec 2013 23:09:21 -0800 (PST) Received: from mx2.suse.de (cantor2.suse.de. [195.135.220.15]) by mx.google.com with ESMTP id h45si8204323eeo.193.2013.12.08.23.09.21 for ; Sun, 08 Dec 2013 23:09:21 -0800 (PST) From: Mel Gorman Subject: [PATCH 08/18] sched: numa: Skip inaccessible VMAs Date: Mon, 9 Dec 2013 07:09:02 +0000 Message-Id: <1386572952-1191-9-git-send-email-mgorman@suse.de> In-Reply-To: <1386572952-1191-1-git-send-email-mgorman@suse.de> References: <1386572952-1191-1-git-send-email-mgorman@suse.de> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Alex Thorlton , Rik van Riel , Linux-MM , LKML , Mel Gorman Inaccessible VMA should not be trapping NUMA hint faults. Skip them. Cc: stable@vger.kernel.org Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e8b652e..1ce1615 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1752,6 +1752,13 @@ void task_numa_work(struct callback_head *work) (vma->vm_file && (vma->vm_flags & (VM_READ|VM_WRITE)) == (VM_READ))) continue; + /* + * Skip inaccessible VMAs to avoid any confusion between + * PROT_NONE and NUMA hinting ptes + */ + if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE))) + continue; + do { start = max(start, vma->vm_start); end = ALIGN(start + (pages << PAGE_SHIFT), HPAGE_SIZE); -- 1.8.4 -- 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