Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1797055imm; Thu, 19 Jul 2018 08:02:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe8rJOZ2pCayjOwBO5Kx6dN1Uc20OFhrH7joUpJQaAE2JIr/Ifw3ITox3nvOQOly6/DVRUi X-Received: by 2002:a17:902:564:: with SMTP id 91-v6mr10412983plf.155.1532012550065; Thu, 19 Jul 2018 08:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532012550; cv=none; d=google.com; s=arc-20160816; b=fEiomMXCo+oCM/wsihwmTlgAjT6YrO6duR7VYK0gJBqQbTl3bIWj2Qb5Bvgmc/8Ae3 O1soMvbmtttBcDahIfLfrSXEFaWQbyQyqiPk4E4mxPL6eI6Aty5t97LX9/YOYfO9yYY2 bncru9FMXkpgf5UncFHfB2i/q45NV7CKMkhnUysG8PPfTjh3OxB6tJbT5sxz5zQL/hvu lwtE4wpjXutkX3PX3lFdDefEc85B16En3U+oRBkrTvrdWCGmLylhSkORFEZqdTwFlpRC Df4HEtHTRlL4stLbuC2ST1S8kYJ/eU9I2peWz5BtWcjLTKOpcYGI9wRmkJekbdr7yPts gSBw== 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:arc-authentication-results; bh=YHEix/TOjRxv70x/ZYn60PvTTg0MhwaXbEte3Ahg3KY=; b=nNn/+gUFihb7xUzLiDd1tn3fydRkQ/JWtM2OppXtguCN+HlN/9PFSQWXFufGEeOkCy VOq7l1Qd9JU8LPqHNFa0hoHTYxJ2W3VOcTtgIKhebhooG2e7/QMDsT0CMhDt+oJK76nP OqYkEAR15VT8UeTPCx1iNkmJsbP2FpPaKRc/7gxKAXYuYZU1nXr9Y4MLfMRZej8CDyew ePOdTBLRRALOjVKGsfLQtkZMCtH1twDr/qtJUISitdrZehDZpFKtk7/5uIeMGGKJ5zVV mtm3KZ0P6U2Ecgs86sYctFALmvO/ojfnJeVzamnORpo4yO7U03eUDUyY1RGJWa6QTTWZ Momg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17-v6si6072709pgg.218.2018.07.19.08.02.14; Thu, 19 Jul 2018 08:02:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731735AbeGSPov (ORCPT + 99 others); Thu, 19 Jul 2018 11:44:51 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35584 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730919AbeGSPov (ORCPT ); Thu, 19 Jul 2018 11:44:51 -0400 Received: by mail-wr1-f68.google.com with SMTP id a3-v6so8413731wrt.2 for ; Thu, 19 Jul 2018 08:01:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YHEix/TOjRxv70x/ZYn60PvTTg0MhwaXbEte3Ahg3KY=; b=ZBYKzzYoFPFTfMzeMM8raRppDFdzTNW6B0WnaSDqPL0LKigjTC/O+K7vfTDpgaZ2qY tOsDc10Ra93dC0k0j0STtOuELIfoatJwzvdHtNogBo4srBVI+4jUPMoHT/54vh3pEgkK TIsJRb5jv3eNRE18KI9HOR+mRDbgNQMwhwCUCY8RftLEjpR5yVYmQ24Pp0xaQLP6EeCe R9/BLq6Y90DYPcX0PrrrSq3Sgs6J1i1IFqnEWILiILTtq38XNOAfJUldOMFZeZsedI5W 3/4coYJPSmSgDXuivRatGdVu+bMYDMRebMj4VYxyqdV74mnFTqr3TXccQ9xWaOkNeqme Lt2Q== X-Gm-Message-State: AOUpUlHGFZHA6NWlb9qk8G7KrzgbDbL3mm5sLfo0N4nJ1r+M8SVdaVj4 PzEOUXA74HOwFdLUsOAb4DU= X-Received: by 2002:adf:8466:: with SMTP id 93-v6mr7397000wrf.274.1532012475985; Thu, 19 Jul 2018 08:01:15 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id x184-v6sm5503289wmg.24.2018.07.19.08.01.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 08:01:15 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 68E69124196; Thu, 19 Jul 2018 17:01:14 +0200 (CEST) Date: Thu, 19 Jul 2018 17:01:14 +0200 From: Oscar Salvador To: Pavel Tatashin Cc: mhocko@kernel.org, Andrew Morton , Vlastimil Babka , aaron.lu@intel.com, iamjoonsoo.kim@lge.com, LKML , Linux Memory Management List , osalvador@suse.de Subject: Re: [PATCH v2 5/5] mm/page_alloc: Only call pgdat_set_deferred_range when the system boots Message-ID: <20180719150114.GC10988@techadventures.net> References: <20180719132740.32743-1-osalvador@techadventures.net> <20180719132740.32743-6-osalvador@techadventures.net> <20180719134622.GE7193@dhcp22.suse.cz> <20180719135859.GA10988@techadventures.net> <20180719140308.GG7193@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 19, 2018 at 10:27:44AM -0400, Pavel Tatashin wrote: > On Thu, Jul 19, 2018 at 10:03 AM Michal Hocko wrote: > > I am not really sure. I am not a big fan of SYSTEM_BOOTING global > > thingy so I would rather not spread its usage. > > I agree, I do not think this patch is necessary. Calling > pgdat_set_deferred_range() does not hurt in hotplug context, and it is > cheap too. SYSTEM_BOOTING sometimes useful, but it is better to use it > only where necessary, where without this "if" we will encounter some > bugs. Ok, let us drop it then ;-). Thanks -- Oscar Salvador SUSE L3