From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13916C4727C for ; Tue, 29 Sep 2020 16:29:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0D45620936 for ; Tue, 29 Sep 2020 16:29:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="WDvhU1ds" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D45620936 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3F8AC6B005C; Tue, 29 Sep 2020 12:29:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 381B76B005D; Tue, 29 Sep 2020 12:29:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 224666B0062; Tue, 29 Sep 2020 12:29:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0094.hostedemail.com [216.40.44.94]) by kanga.kvack.org (Postfix) with ESMTP id F28AE6B005C for ; Tue, 29 Sep 2020 12:29:02 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id AF7B08249980 for ; Tue, 29 Sep 2020 16:29:02 +0000 (UTC) X-FDA: 77316633324.16.rock82_3615e922718b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 8A38B1021814D for ; Tue, 29 Sep 2020 16:29:02 +0000 (UTC) X-HE-Tag: rock82_3615e922718b X-Filterd-Recvd-Size: 6218 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf42.hostedemail.com (Postfix) with ESMTP for ; Tue, 29 Sep 2020 16:29:01 +0000 (UTC) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08TG3bfM187415; Tue, 29 Sep 2020 12:28:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=mhbL9cAGq0e2Mae+zrDCOrv685gHuymKN9fGJq7z/tU=; b=WDvhU1dshjPQfYeKMj6NtytK4zc/w5+pVTPDH+9tJVtqz0BeLHZ/SL/luYeNISMRbuOT j3PsGa2diSBryAoB3ByJkSnb0RgyC9pktfa3gtlScycT6ZKm0KRBBw7pwkFtK+vQvFtx nnF3Lx6B9z/FkdnhabdyYWi6ebkNGQrr3j2lT7GuZ475KAaWS4Md/uhWwAdDeS0a24zW OD2UcKeXbyHfu/bVxzv34rl60tBb0R99iq3NK5c3+/EJ/ju3GzDkDgNz4NU3ryprCsi8 T+5Hf7LJuFL+i0w7SwBg1RKf7TKZfKTocFg5GG/E/NSo5P+UqxfLbBFG2IOaSWJM6hv3 wQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 33v7cpak9w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Sep 2020 12:28:57 -0400 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 08TG4Brb190966; Tue, 29 Sep 2020 12:28:56 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 33v7cpak8x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Sep 2020 12:28:56 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 08TGSGiQ025185; Tue, 29 Sep 2020 16:28:55 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma06ams.nl.ibm.com with ESMTP id 33v6mgr3w4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Sep 2020 16:28:55 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 08TGSqNe30147032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Sep 2020 16:28:52 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E98B342045; Tue, 29 Sep 2020 16:28:51 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6515042042; Tue, 29 Sep 2020 16:28:51 +0000 (GMT) Received: from pomme.local (unknown [9.145.50.8]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 29 Sep 2020 16:28:51 +0000 (GMT) Subject: Re: [patch 8/9] mm: replace memmap_context by meminit_context To: Linus Torvalds , Andrew Morton Cc: cheloha@linux.ibm.com, David Hildenbrand , Fenghua Yu , Greg Kroah-Hartman , Linux-MM , Michal Hocko , mm-commits@vger.kernel.org, nathanl@linux.ibm.com, Oscar Salvador , Rafael Wysocki , stable , Tony Luck References: <20200925211725.0fea54be9e9715486efea21f@linux-foundation.org> <20200926041928.9xJHGgkah%akpm@linux-foundation.org> From: Laurent Dufour Message-ID: <6300fe4c-d54e-8f99-ccf8-216f15cde4fb@linux.ibm.com> Date: Tue, 29 Sep 2020 18:28:51 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-29_10:2020-09-29,2020-09-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 malwarescore=0 mlxscore=0 impostorscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009290136 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Le 26/09/2020 =C3=A0 19:32, Linus Torvalds a =C3=A9crit=C2=A0: > The explanations here do not make sense. >=20 > On Fri, Sep 25, 2020 at 9:19 PM Andrew Morton wrote: >> >> >> There are 2 issues here: >> >> a. The sysfs memory and node's layouts are broken due to these multipl= e >> links >> >> b. The link errors in link_mem_sections() should not lead to a system >> panic. >> >> To address a. register_mem_sect_under_node should not rely on the syst= em >> state to detect whether the link operation is triggered by a hot plug >> operation or not. This is addressed by the patches 1 and 2 of this ser= ies. >> >> The patch 3 is addressing the point b. >> >> This patch (of 2): >> >> The memmap_context enum is used to detect whether a memory operation i= s due >> to a hot-add operation or happening at boot time. >> >> Make it general to the hotplug operation and rename it as meminit_cont= ext. >> >> There is no functional change introduced by this patch >=20 > So far so good. >=20 > But there is no "patch 3" that addresses point (b) in this series. >=20 > I see it on lore, but it's not part of what actually got sent to me, > so the commit message for patch 1 now makes no sense any more. I agree, the commit description is a bit confusing now. I think the Andrew's idea was to queue up the 2 first patches which are=20 cc:stable to the 5.9-rcX and later the third one which is not really fixi= ng an=20 issue. The BUG_ON is unlikely to be triggered once the 2 first patches ar= e applied. Thanks, Laurent.