Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp123977imm; Wed, 5 Sep 2018 22:51:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYV6ha+80uxCTRifZYQg+QYMasgYX8gOHL0ASIP/Qazr2/3T0FceJzVb7VeHTE0UYzbdpwH X-Received: by 2002:a17:902:be08:: with SMTP id r8-v6mr1129605pls.265.1536213066964; Wed, 05 Sep 2018 22:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536213066; cv=none; d=google.com; s=arc-20160816; b=xpd6qiVUI9aJobmlvgC/BA/JxVtHM1zAKJtvlN8OkFyCMaUgBsyEoU7iIG74Qauqup +KiSwkgTejvFtaMdHI3vJRzz+V4XvipSSsGglGhD8ulC+eR+hVHuJB8+QWyWEyvsngN9 EiU32gOQnSZM8zSBBD1VZ/vJWtHF/vrF/YoHmDFpPOWGzWPwmMhtZdji0M752qoxy8Ww 9McLRi322NIH6pQm3NkrgdG4gXYfKEGn5lFxdEWVRGVkMFM6xq9EE2dGfaaObsrf0dsB i5lxdX3k42VpJQIE8/DTxtaXnelu+pRrDfkiS4G5mmRNnNVLjFos991l8D0QED7w0xwX A/dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LDXsWk5pyFastRL159CQgikpDV0IcLL1e8+KO+Eb3Bg=; b=p3m4wWJsw5Zn82FMzILcB86PQli8pFhZY/EaVCxArCec9gcSSv3VjhOSXRPwLYyRaS tk0IAs6g/GBuXWRc7bQBAXoljpBubPE/fGT+NgfSiczw6vmVXkjMBnh17aPdQuLUjcFY eYPKc+aj9SxHcwa9pDu3etLXLBL5TSINwVLWal7CGkqAdY2W4i5o/1Rm8vVhZASeR1ah pS+BwIvBrGZQdHhP0UbKQke2w+9qrmefpQGixW/5SG+XfBFjhoy5We7PIG5Xsw3zT89T uhIi8Cwp5XO/jVwgRFCvHTIdE/Jd08BMe00+r6ioGPrZLwqMUU5U8PQWHvlLiJY6gkoX KT7Q== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21-v6si3946535pgu.163.2018.09.05.22.50.51; Wed, 05 Sep 2018 22:51:06 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbeIFKXd (ORCPT + 99 others); Thu, 6 Sep 2018 06:23:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:46272 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725850AbeIFKXd (ORCPT ); Thu, 6 Sep 2018 06:23:33 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 05B54B00F; Thu, 6 Sep 2018 05:49:47 +0000 (UTC) Date: Thu, 6 Sep 2018 07:49:46 +0200 From: Michal Hocko To: Alexander Duyck Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, alexander.h.duyck@intel.com, pavel.tatashin@microsoft.com, dave.hansen@intel.com, akpm@linux-foundation.org, mingo@kernel.org, kirill.shutemov@linux.intel.com Subject: Re: [PATCH v2 2/2] mm: Create non-atomic version of SetPageReserved for init use Message-ID: <20180906054946.GK14951@dhcp22.suse.cz> References: <20180905211041.3286.19083.stgit@localhost.localdomain> <20180905211334.3286.84435.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180905211334.3286.84435.stgit@localhost.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 05-09-18 14:13:34, Alexander Duyck wrote: [...] just a nit > @@ -1231,7 +1231,8 @@ void __meminit reserve_bootmem_region(phys_addr_t start, phys_addr_t end) > /* Avoid false-positive PageTail() */ > INIT_LIST_HEAD(&page->lru); > > - SetPageReserved(page); > + /* no need for atomic set_bit at init time */ > + __SetPageReserved(page); OK but I guess it would be much more clear to say /* * no need for atomic set_bit because the struct * page is not visible yet so nobody should * access it yet. */ > } > } > } -- Michal Hocko SUSE Labs