From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755130Ab3JGOCJ (ORCPT ); Mon, 7 Oct 2013 10:02:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6821 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751734Ab3JGOCE (ORCPT ); Mon, 7 Oct 2013 10:02:04 -0400 Message-ID: <5252BECA.4080302@redhat.com> Date: Mon, 07 Oct 2013 10:01:46 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Mel Gorman CC: Peter Zijlstra , Srikar Dronamraju , Ingo Molnar , Andrea Arcangeli , Johannes Weiner , Linux-MM , LKML Subject: Re: [PATCH 06/63] mm: Prevent parallel splits during THP migration References: <1381141781-10992-1-git-send-email-mgorman@suse.de> <1381141781-10992-7-git-send-email-mgorman@suse.de> In-Reply-To: <1381141781-10992-7-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/07/2013 06:28 AM, Mel Gorman wrote: > THP migrations are serialised by the page lock but on its own that does > not prevent THP splits. If the page is split during THP migration then > the pmd_same checks will prevent page table corruption but the unlock page > and other fix-ups potentially will cause corruption. This patch takes the > anon_vma lock to prevent parallel splits during migration. > > Cc: stable > Signed-off-by: Mel Gorman Acked-by: Rik van Riel -- All rights reversed From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by kanga.kvack.org (Postfix) with ESMTP id BD8C46B003C for ; Mon, 7 Oct 2013 10:02:01 -0400 (EDT) Received: by mail-pd0-f169.google.com with SMTP id r10so7227353pdi.0 for ; Mon, 07 Oct 2013 07:02:01 -0700 (PDT) Message-ID: <5252BECA.4080302@redhat.com> Date: Mon, 07 Oct 2013 10:01:46 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 06/63] mm: Prevent parallel splits during THP migration References: <1381141781-10992-1-git-send-email-mgorman@suse.de> <1381141781-10992-7-git-send-email-mgorman@suse.de> In-Reply-To: <1381141781-10992-7-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Peter Zijlstra , Srikar Dronamraju , Ingo Molnar , Andrea Arcangeli , Johannes Weiner , Linux-MM , LKML On 10/07/2013 06:28 AM, Mel Gorman wrote: > THP migrations are serialised by the page lock but on its own that does > not prevent THP splits. If the page is split during THP migration then > the pmd_same checks will prevent page table corruption but the unlock page > and other fix-ups potentially will cause corruption. This patch takes the > anon_vma lock to prevent parallel splits during migration. > > Cc: stable > Signed-off-by: Mel Gorman Acked-by: Rik van Riel -- All rights reversed -- 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