Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1732591imm; Thu, 19 Jul 2018 07:03:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeWn0Y5T1DlzR1oQ0b6uERvFfxk70v+gTemomr0V8zdxxtS1blsTm8+k8w4gNtomMSzKX9L X-Received: by 2002:a62:8d84:: with SMTP id p4-v6mr9841758pfk.251.1532009028905; Thu, 19 Jul 2018 07:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532009028; cv=none; d=google.com; s=arc-20160816; b=XUU+WsEq4395ed+9s5sabb77LAhm5JC0MkStlPGhUMpmKNgTFnrzNSJr1V/g5YO29F aa7iTk7r4FHTspYLdc2fhzGLqeRFZedec8EyF/kUD+c4n9JlnMr+Csofjzen45i5liJE ayBdMasNplClEeKitBKn8ae1G9UJTrxC0ap4naLiUJEBZ8UQhiX978Xu6yPaqjsCdEtW PXckI/aqOdu2yGgBkopztKMr9rfZCgw6jIeR/szpKUB6L5AybdMIJXMu9wS3f+KnqXCF zSpMwp2q8JGAAtZNc45NHiNwiWv/cXQfpMOkmGpVY4YU/CRvLiI6kM/nYZKgI+Bim+ee yACA== 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=m9lxl6NH9FppFxQrFdHhXypzdTnxtxazSHxp69Rq0yo=; b=ACg52zpbFCtrxvP4KP//kyyZR7PWmFoQLwVxaMyOJ/+CXG3etTkn94GWaPV3eLvvtZ LAKx6WlcRuU8FkiwtgkWi0fnwtSd+8HxG5J1o7uYy/KRQAVO0leXBqiv8CmiCyhL30QB 4r5KCsTZxbWa2+vEYrXlK7d7UDHdXPtBVXbC34DpwptLT7z521Qj57M0X99quxJS1gGX xOKHE85T09T6IgOuO94seq4Dz4NkdrLwQMiK97LzozKkfcfyeNmF780MmzL9dCXyHhu0 4J8jx3Dqmz3CG+qyWB/948l/Cau4ON6p8l1dOPwAVonVydRFvQLSJX13a/EeX00tyVzI Fb5g== 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 f1-v6si5618269plf.453.2018.07.19.07.03.10; Thu, 19 Jul 2018 07:03:48 -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 S1731816AbeGSOmT (ORCPT + 99 others); Thu, 19 Jul 2018 10:42:19 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:39428 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731804AbeGSOmT (ORCPT ); Thu, 19 Jul 2018 10:42:19 -0400 Received: by mail-wm0-f67.google.com with SMTP id h20-v6so6486579wmb.4 for ; Thu, 19 Jul 2018 06:59:00 -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=m9lxl6NH9FppFxQrFdHhXypzdTnxtxazSHxp69Rq0yo=; b=mPKo9PBfKBxCDQ4YSLAV2S80YNXrys/nNq7mNEHbO6VPY88jvxTkXtwVRcGFFg6Z5A H4pMPdW2iJ51B7zeiTy2caX5VeDC3rUO/XN6NuYdDSzzRbP5sYwMN2pYv8lseMbnGmk1 LYmFzAe7BC/ab4WhlxwHhE3RM+CJg15ncXxed3fyEGYitZIDPFGhHSkxrp+Vg3wuY5qi NFi0Pwk5NP1R604cSVvV90Uo4vYYmvTj92c2oF33GxoUNeV7/lu8ts9fE+Oy6Lsl/GR3 as0MXOv5lCDUbKHAZHnjZx5caZnRhc2cLsxov41xGT3gKm1krW3nZz9USq7uVLsvFC0j M1lw== X-Gm-Message-State: AOUpUlEdvRs/yJMX0s/3eeW369x3M4b4af7Zvhjds3J8IlDHE1bLSMt8 Cfmmw4+cQXXvtdGGPOgyps8= X-Received: by 2002:a1c:e409:: with SMTP id b9-v6mr4143456wmh.34.1532008740316; Thu, 19 Jul 2018 06:59:00 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id m17-v6sm10280339wrg.65.2018.07.19.06.58.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 06:58:59 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 175E8124188; Thu, 19 Jul 2018 15:58:59 +0200 (CEST) Date: Thu, 19 Jul 2018 15:58:59 +0200 From: Oscar Salvador To: Michal Hocko Cc: akpm@linux-foundation.org, pasha.tatashin@oracle.com, vbabka@suse.cz, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Oscar Salvador Subject: Re: [PATCH v2 5/5] mm/page_alloc: Only call pgdat_set_deferred_range when the system boots Message-ID: <20180719135859.GA10988@techadventures.net> References: <20180719132740.32743-1-osalvador@techadventures.net> <20180719132740.32743-6-osalvador@techadventures.net> <20180719134622.GE7193@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180719134622.GE7193@dhcp22.suse.cz> 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 03:46:22PM +0200, Michal Hocko wrote: > On Thu 19-07-18 15:27:40, osalvador@techadventures.net wrote: > > From: Oscar Salvador > > > > We should only care about deferred initialization when booting. > > Again why is this worth doing? Well, it is not a big win if that is what you meant. Those two fields are only being used when dealing with deferred pages, which only happens at boot time. If later on, free_area_init_node gets called from memhotplug code, we will also set the fields, although they will not be used. Is this a problem? No, but I think it is more clear from the code if we see when this is called. So I would say it was only for code consistency. If you think this this is not worth, I am ok with dropping it. Thanks -- Oscar Salvador SUSE L3