Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1233313pxp; Thu, 10 Mar 2022 01:09:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdPTYVYEY9JA4XtfkUBq8W67OH8CkW4AVAtpW/HieorBGM6eRuFQF1RQtDhqHFB+lyeMqY X-Received: by 2002:a05:6402:2691:b0:416:8dab:b5e7 with SMTP id w17-20020a056402269100b004168dabb5e7mr3422372edd.358.1646903386301; Thu, 10 Mar 2022 01:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646903386; cv=none; d=google.com; s=arc-20160816; b=hhFJ/Cp6lhMcerUwR78NDt+kcI1tEKCYj0evKYDjGc3Oa9YGcbBsGq1QCKrKPV4gi4 bXoNtbd07F5L0HsRsV0PEEAkWolX6wZx48tYIjmbJXNiM7Eb1lyq+q8yqTQ/d7GbuM62 KLFK9US3YmR+SO5ILnpQJgL593fA6A28KhiMY+bBFGg6Vc7tEzDQJ0+mBUsG1AdX9Adw fw4jLv7ZKQ9veQwuJB7e701zXwxsiyx0/qUtVkSIhHd5Xwrg33+9SbaLlvMON8xQRV2n GzMbHt/4C03NER5dAQ4ws1YWz+obS4aBp8c6PkldiD8uQVwhoEZiE8I9t8/9Hi6dv+Ue V3LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=E0v4Okq/Vwj1DkpbTQ/9vduUBRNNE2OxrDnwQN8oagM=; b=ixL3Gx0ceRoUjRPW3362bzgHwhaHE4PcOY6fkCEZQXJSkTo9xsdd3FTSt/ZjNQqm8R mq4r5QMIUDr7xjgjmp2NtyjnkLXt9RN+SiJvbvggd3C+1fgVv2ExzbGXAXZVdW+iv2wX xIOdlKp1cyeq+NlBu+C0mTmpnbBapyvRrE3tzHEhie2nSSMl4+LvFfiU0EFm5NRjZ8ey G7V3MvoBq2CmLFnmFwZDk0Fodrvwb8I77dwgCrgPculq4t7k7DpOqssBUA2AY1aTcZlk Qpox46KLzrzoOy3kxZsSx6MDlSSRtGv3vId6Y/3EliEudAg3ht7nHkltKXHoW35n1X5v W6CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kgCMDQHj; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dy25-20020a05640231f900b0041644faef40si2653340edb.236.2022.03.10.01.09.23; Thu, 10 Mar 2022 01:09:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kgCMDQHj; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236761AbiCIV4g (ORCPT + 99 others); Wed, 9 Mar 2022 16:56:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234811AbiCIV4f (ORCPT ); Wed, 9 Mar 2022 16:56:35 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0439972AE for ; Wed, 9 Mar 2022 13:55:32 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 28C361F381; Wed, 9 Mar 2022 21:55:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646862931; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=E0v4Okq/Vwj1DkpbTQ/9vduUBRNNE2OxrDnwQN8oagM=; b=kgCMDQHjfIweWJ7IUKQ5lam5cwnoZap9GTsGimg8VSK2YPD0BvdEIJH6QJdnWgioPhM/iD eF0oKqZUjCuUom072AYgJ6EWiracAgdKaQfecIlJk6KOwGlQZnpWJNxZdQ6XiukLWR5pjE sZKa8K4fWRBV08qdsHvwkX2JmfeQcMA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646862931; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=E0v4Okq/Vwj1DkpbTQ/9vduUBRNNE2OxrDnwQN8oagM=; b=HCURMcqzfjDCSbhpPyiVULe4R9gh3HN3BvV8xFmDkWlWF0hQToZV7w1lZ0VbJgEexWr8BL h7Xob+aZzdDEbtCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B37C513D7F; Wed, 9 Mar 2022 21:55:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id pjYlKFIiKWIzdgAAMHmgww (envelope-from ); Wed, 09 Mar 2022 21:55:30 +0000 Date: Wed, 9 Mar 2022 22:55:29 +0100 From: Oscar Salvador To: Andrew Morton Cc: Dave Hansen , "Huang, Ying" , Abhishek Goel , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: Only re-generate demotion targets when a numa node changes its N_CPU state Message-ID: References: <20220309144644.4278-1-osalvador@suse.de> <20220309130249.60733272aafb3bd5f2e6b88c@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220309130249.60733272aafb3bd5f2e6b88c@linux-foundation.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 09, 2022 at 01:02:49PM -0800, Andrew Morton wrote: > On Wed, 9 Mar 2022 15:46:44 +0100 Oscar Salvador wrote: > > +static inline void set_migration_target_nodes() {} > > Compiler won't like that. Please test (compile and runtime) with > CONFIG_HOTPLUG_CPU=n. Sorry, fat fingers. This on top: diff --git a/include/linux/migrate.h b/include/linux/migrate.h index c64fe2923fb0..b82b4a9a0136 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -51,7 +51,7 @@ extern bool numa_demotion_enabled; #ifdef CONFIG_HOTPLUG_CPU extern void set_migration_target_nodes(void); #else -static inline void set_migration_target_nodes() {} +static inline void set_migration_target_nodes(void) {} #endif #else I will wait for some feedback before sending a v2. thanks Andrew! -- Oscar Salvador SUSE Labs