Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1199002ybh; Tue, 10 Mar 2020 17:06:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtbn82kGn0e9WEdap6z0aUME4FfO9yo9O9vu77BQbag2Xd4xHZbQ36vXx0d/59bBYRX7jfu X-Received: by 2002:a9d:73c7:: with SMTP id m7mr243294otk.69.1583885169234; Tue, 10 Mar 2020 17:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583885169; cv=none; d=google.com; s=arc-20160816; b=jssn9hifHf4M8vrP46L+8RjZfPw7crpNQFYArZLpZ9Iyk2UyU06q0YR8BENBOn4NI+ BXf4klZNFy6VJetAD+gWLK9o7iIwUQ5ghqshRc9TrVvBXX8LBCnh0JYzk0ABlCPFIph7 rvlHi6Yt5Dyndb3v6OqrYQaKHAXviaC+27NY/qRXPgArqn69JSt7Q98bna4m/uQ88gB/ /SXhc9qp5E6LQ9MidTN/JkRmBNziTfk6Qir5HYDiAz7phEtf5W7NJjBTgDVsa1GcP3tO 0xBXha8JDgG+YMKDRdRLsxRYtMwMz0RSfadMegab7WGLDGytNkhQyFm1LO2Bv4wXhaRz vf0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=kC2peWxJ+qm6+wzfyf0pDsl2H945cR1gyhQhbsBrJUE=; b=Y51yeAwwFoB7/zyWXl4fb0nzhWNUpSsbzfXCRvYBPBNxxcRDC6nQFX2OO3AeyJ8ih7 kzvQxNiWKM++TKuRO3K1Z09/dcUScvOTMDSkPImhiOUlXZQpR0VGGG9kTClCtarxCesm oqonU2kZRFYLivOc3JQFZvIPtO60HHnicFdA1YUCC8gsrOeb6FWp+cuZs3kOnS8nP0Fs Oh+o1qWFmQBCMXb0x9XAqpS/tNXBLVLeXj5Izbo7CzROpq81J6AsoPCOHpEdlAB2GZYu OKbeLjV9JJjfi2UZNkGBO1FzZU4DgeCSehlG9wQAF/jus3jGpmWJV5NpJsvP8uG1QHON 1kOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=E2WEtHLm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v15si99110oth.307.2020.03.10.17.05.35; Tue, 10 Mar 2020 17:06:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=E2WEtHLm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727659AbgCKAEP (ORCPT + 99 others); Tue, 10 Mar 2020 20:04:15 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:36944 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726899AbgCKAEP (ORCPT ); Tue, 10 Mar 2020 20:04:15 -0400 Received: by mail-qk1-f196.google.com with SMTP id y126so435282qke.4 for ; Tue, 10 Mar 2020 17:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kC2peWxJ+qm6+wzfyf0pDsl2H945cR1gyhQhbsBrJUE=; b=E2WEtHLmwgB1sqZ9NdN+PYhK/kzD9WlEKX/XMkqkvWCWgVvKOdHt3kMMRwtGfKRedx QsHdLUiE9T/DCGZnU+D3JmKEHaXbAlZw33XyyKsnL4XHMyDuuZcaq2W0rlKEV98nBwyh Q+YaCLmxO0cP74zP1i1WT34kG+5Y6HXbSFaP7yuHmRzWGFTGDRQ4I0VPFwEmU408GL9t YFrllVedIhQ7MkNwS5EzCYRzr3NTi8htqDcq920NygGPq565EI+nBd7M53aNAKuMiePM LSo5JbqR4rfT8Blrr8ChWL888Avah/D0nF/RIs3usG2MvXnSKLbhKaBlylwEX3uJkwrK lgbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kC2peWxJ+qm6+wzfyf0pDsl2H945cR1gyhQhbsBrJUE=; b=PJlv4OzO9fB021yMGJqHtfmr0wDsBLfx0Tmb21f4mEbZ/dgP01ciSJTi7vrtVjqgSh QYi83oM0103Si8kQYiC9TfV/K++OvtDHsvnVa6VrpjKAEOMF3owfjNbSK2KieXEBY+NU qqYM+8QDdzzkZ+2UyhDarHI3/W3/5Dd05WJfjbhC7DdjT1S8BWmVN0wxSJ626qkLq2fv wjGB1xuUW/ofDEy4dZZbOT6BXwp9lFRLYuiIdEzKRnqrjQpEf1AvNaRafCp1c5PjPCFv BrEcM4UbLl70SFXch3cNC8Zesjw6GzTk4wcHvfCCsVf5NqviUXoLBAXV0Pch3hBs1D/z hV5Q== X-Gm-Message-State: ANhLgQ0UpKeAqU2QC+ZNK4QpSozJJiTGaQULlKoAWZxMJobaSm6IpwXM 49gV+EP4PH9b1XEqNWfXIFXg6A== X-Received: by 2002:a05:620a:109a:: with SMTP id g26mr416744qkk.166.1583885053989; Tue, 10 Mar 2020 17:04:13 -0700 (PDT) Received: from [192.168.1.153] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id i28sm25764085qtc.57.2020.03.10.17.04.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Mar 2020 17:04:13 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [PATCH] mm, numa: fix bad pmd by atomically check for pmd_trans_huge when marking page tables prot_numa From: Qian Cai In-Reply-To: <20200309150531.GD25642@optiplex-lnx> Date: Tue, 10 Mar 2020 20:04:11 -0400 Cc: Linus Torvalds , Linux Memory Management List , LKML , mgorman , Andrew Morton , Michal Hocko , Vlastimil Babka Content-Transfer-Encoding: quoted-printable Message-Id: <917137D2-FD66-4175-AC69-23F8206186C5@lca.pw> References: <20200216191800.22423-1-aquini@redhat.com> <2E0766B8-DDD1-4448-8605-8535A16670FC@lca.pw> <20200307030530.GB4093@t490s> <9124C8B9-FB47-44F5-8606-DD9261BCB383@lca.pw> <20200308231423.GA22348@t490s> <20200309150531.GD25642@optiplex-lnx> To: Rafael Aquini X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mar 9, 2020, at 11:05 AM, Rafael Aquini wrote: > I'm still waiting on a similar system to become available, so I can > work on your reproducer case, as well as to dig and wrap my head = around it. >=20 > I still don't think that skipping the pmd_none() in the = change-protection walk=20 > should cause a big fuss like you observed here (yet, it seems it = does), and=20 > the fact that we need that race window to take the __split_huge_pmd() = suggests, > at least to me, that we might be missing this proper split somewhere = else. I have sent out another patch which should be more correct, https://lore.kernel.org/lkml/20200310235846.1319-1-cai@lca.pw/=