Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp599713pxb; Thu, 25 Feb 2021 10:06:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbYA59TyD/6UVc36oljmJhWxSwT8f8S3a9i3GsFpPegwKYpExq0+Eji1J8rvupLx7hrnzn X-Received: by 2002:a17:906:f113:: with SMTP id gv19mr3751613ejb.379.1614276393374; Thu, 25 Feb 2021 10:06:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614276393; cv=none; d=google.com; s=arc-20160816; b=sX/FjjU11DM3xjo+NTzTEYq+yI2F5cuoDPF5JHORu2UMkK7ZQmihmQHNUs/TS3sjO/ XnfcNUy4HA8i2A6mAyda8WybYZ119VW27ncTnI3d0HqQKJGVb/JLOmAsSDj7EratmqCr bI3ItOkkw9sI7MFvi6yBE4owKk2GsNnu9ubgd9Lb8FaTKjaBFTAiCqdSexzfpMYKITQO 0YlIDVhtBOaS5vjNqyq39k5ztpw1RKqN2gmc3R1+XTpW/CYX3TqHWI/BlTVWRwXGDbnu 8ZPIy1n2a4qoSTC4EEipQVxBN774plT0Fa6Cn3WtsVqQPpnE1RCjpnTb/rx6QaGx20Tv 0iWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Q6fnMFz33qplfRqMB+HqqUvPdR34RqJh36nDC5TsifM=; b=SpeNLrUjc4aTVGYtGQc9v1DINs5ah9dcSAb/ZtL4OVep7rOfCQP+bh/SAyDo/MKzfD 8o0woTSQpMtB+4Q2ly5gMX8A7X7sU9Y+PPZHVgOcVGOLlaWR7fSp24mXcd9oBEs3Rb1C 4OQw8fPmgamK0wF6LX9/Hyqd/1+xQXU2z4Y4cdFNkzLgsKXHXUiQ8JX8OHNA+Mu7uvwN r21N8ePWAHttUUS/rOp6mt3i7TEOy0d9JdO7Gev9lQhKuXJGQJGJ1eCiYe1nJpfug1qm PoqMMeEL76irLeilSa1R8muVUQGOC0zaCUMe9n2JnM4OhEVlivF7YDXmwuC0z5w2dFzn 8vXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GFIFnYEH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he14si3900720ejc.274.2021.02.25.10.06.08; Thu, 25 Feb 2021 10:06:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GFIFnYEH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233502AbhBYSFH (ORCPT + 99 others); Thu, 25 Feb 2021 13:05:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233365AbhBYSCi (ORCPT ); Thu, 25 Feb 2021 13:02:38 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA1FC061574 for ; Thu, 25 Feb 2021 10:01:58 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id d2so8022770edq.10 for ; Thu, 25 Feb 2021 10:01:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q6fnMFz33qplfRqMB+HqqUvPdR34RqJh36nDC5TsifM=; b=GFIFnYEHkDWCJeUWtVcHjzxrKHzPSC845ICu8hcYMqCsuUHUMYhmhM6A8qllmj2wvF TeD+nXiix4KfoCrm2ttxL6EfZmKtzW+4tjcpl0pa/DNpOjMdlXHpNVfbq1N7k4QYkskP rPYDh0IFTsvGod5noex2WbDs0vYWj0YFRCsRo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q6fnMFz33qplfRqMB+HqqUvPdR34RqJh36nDC5TsifM=; b=ddagNHuytpLmHVe3bBnuA3JUrFqNRpVVMOXZOl+FPWjAfNIF3qTedeslShpLG5PZ5k 2Mmp7wN+enUjFSCX8bzdnhaSDhgCi48QtuNi+/bAxyY0agRK4umVY8tbuBbgy5RFxyVv JTU4CCswXgR1lM+ID4rsN/8qzqyqgwmJ41E/W9thpTOtiy2EGm2+ovuQUYFo2CjZpWrH PzsZ+Clg2wIl789HhNKSeeVkYrr48LhfSaSs0KKuYmgoNYhrwTzu2DjQXdCD8DLJ+8fv 0X6z40F5A10hEIpEHprNuvFmGwO0qtpO7AVZATnH/MxqDigqw0QPFF9b+np2+9iWuBJq ZNkQ== X-Gm-Message-State: AOAM5339C9fKrcU52/D/F6+0vVJgtZmB9YUtSqjLALfwC/1b8QLR3oQg qObHfCcuaYgdXGryNe4VY7XxopmrtFF8/g== X-Received: by 2002:a05:6402:203:: with SMTP id t3mr879403edv.306.1614276117343; Thu, 25 Feb 2021 10:01:57 -0800 (PST) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com. [209.85.208.49]) by smtp.gmail.com with ESMTPSA id g3sm3280495ejz.91.2021.02.25.10.01.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Feb 2021 10:01:57 -0800 (PST) Received: by mail-ed1-f49.google.com with SMTP id c23so1601672edr.13 for ; Thu, 25 Feb 2021 10:01:57 -0800 (PST) X-Received: by 2002:a05:6512:398d:: with SMTP id j13mr2392819lfu.41.1614275689864; Thu, 25 Feb 2021 09:54:49 -0800 (PST) MIME-Version: 1.0 References: <20210224153950.20789-1-rppt@kernel.org> <20210224153950.20789-2-rppt@kernel.org> <515b4abf-ff07-a43a-ac2e-132c33681886@redhat.com> <20210225170629.GE1854360@linux.ibm.com> In-Reply-To: <20210225170629.GE1854360@linux.ibm.com> From: Linus Torvalds Date: Thu, 25 Feb 2021 09:54:34 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 1/1] mm/page_alloc.c: refactor initialization of struct page for holes in memory layout To: Mike Rapoport Cc: David Hildenbrand , Mike Rapoport , Andrew Morton , Andrea Arcangeli , Baoquan He , Borislav Petkov , Chris Wilson , "H. Peter Anvin" , Ingo Molnar , =?UTF-8?Q?=C5=81ukasz_Majczak?= , Mel Gorman , Michal Hocko , Qian Cai , "Sarvela, Tomi P" , Thomas Gleixner , Vlastimil Babka , Linux Kernel Mailing List , Linux-MM , stable , "the arch/x86 maintainers" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 25, 2021 at 9:07 AM Mike Rapoport wrote: > > > > > We might still double-initialize PFNs when two zones overlap within a > > section, correct? > > You mean that a section crosses zones boundary? > I don't think it's that important. What if there was a memory allocation in between that could allocate the once-initialized page? Maybe it can't happen, or is not an issue for some other reason, but this code has been fragile and had a ton of subtle issues, so maybe worth documenting (or explaining here why it's just not relevant) Linus