Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752205AbdCCWlB (ORCPT ); Fri, 3 Mar 2017 17:41:01 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42212 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752146AbdCCWk4 (ORCPT ); Fri, 3 Mar 2017 17:40:56 -0500 Date: Fri, 3 Mar 2017 14:29:54 -0800 From: Andrew Morton To: "Kirill A. Shutemov" Cc: Andrea Arcangeli , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] thp: fix MADV_DONTNEED vs clear soft dirty race Message-Id: <20170303142954.f01bc26179d6e28a2c18da5f@linux-foundation.org> In-Reply-To: <20170302151034.27829-5-kirill.shutemov@linux.intel.com> References: <20170302151034.27829-1-kirill.shutemov@linux.intel.com> <20170302151034.27829-5-kirill.shutemov@linux.intel.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 696 Lines: 20 On Thu, 2 Mar 2017 18:10:34 +0300 "Kirill A. Shutemov" wrote: > Yet another instance of the same race. > > Fix is identical to change_huge_pmd(). Nit: someone who is reading this changelog a year from now will be quite confused - how do they work out what the race was? I'll add : See "thp: fix MADV_DONTNEED vs. numa balancing race" for more details. to the changelogs to help them a bit. Also, it wasn't a great idea to start this series with a "Restructure code in preparation for a fix". If people later start hitting this race, the fixes will be difficult to backport. I'm OK with taking that risk, but please do bear this in mind in the future.