From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755471AbdDJRVB (ORCPT ); Mon, 10 Apr 2017 13:21:01 -0400 Received: from outbound-smtp08.blacknight.com ([46.22.139.13]:43024 "EHLO outbound-smtp08.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754070AbdDJRU6 (ORCPT ); Mon, 10 Apr 2017 13:20:58 -0400 Date: Mon, 10 Apr 2017 18:20:56 +0100 From: Mel Gorman To: Zi Yan Cc: "Kirill A. Shutemov" , Andrew Morton , Andrea Arcangeli , Rik van Riel , Michal Hocko , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm, numa: Fix bad pmd by atomically check for pmd_trans_huge when marking page tables prot_numa Message-ID: <20170410172056.shyx6qzcjglbt5nd@techsingularity.net> References: <20170410094825.2yfo5zehn7pchg6a@techsingularity.net> <84B5E286-4E2A-4DE0-8351-806D2102C399@cs.rutgers.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <84B5E286-4E2A-4DE0-8351-806D2102C399@cs.rutgers.edu> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 10, 2017 at 11:45:08AM -0500, Zi Yan wrote: > > While this could be fixed with heavy locking, it's only necessary to > > make a copy of the PMD on the stack during change_pmd_range and avoid > > races. A new helper is created for this as the check if quite subtle and the > > existing similar helpful is not suitable. This passed 154 hours of testing > > (usually triggers between 20 minutes and 24 hours) without detecting bad > > PMDs or corruption. A basic test of an autonuma-intensive workload showed > > no significant change in behaviour. > > > > Signed-off-by: Mel Gorman > > Cc: stable@vger.kernel.org > > Does this patch fix the same problem fixed by Kirill's patch here? > https://lkml.org/lkml/2017/3/2/347 > I don't think so. The race I'm concerned with is due to locks not being held and is in a different path. -- Mel Gorman SUSE Labs