Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3900033iob; Sat, 7 May 2022 19:41:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwriGaeZt7tciGQ1m6KnKtUZT4rD9vZ6TK4Dh/FIp+2AgcuaGC69CZGmc6DHvEgy9lnAViF X-Received: by 2002:a17:907:6d08:b0:6f4:45ca:c410 with SMTP id sa8-20020a1709076d0800b006f445cac410mr9480055ejc.679.1651977682149; Sat, 07 May 2022 19:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651977682; cv=none; d=google.com; s=arc-20160816; b=0rxU17dR7QLTCZNeAdHW21YE1S3ZZs928lww4WZZXnjzz5cU6DNNeZ5i+TQoJSM4b/ ME8H6I5MHiarjHDF9eN5JyeQlCv2lM5g9sC9Yh5r7WFweZ5L+oKI6wNMYORTMxWcxzRE gRxudQJ362ugvGYjwE++CpM0SG3P9b9ZkHOjjbDdCyaZo0SL/Imf4qqsqAALCz2DKl0F DTRIpBkPpI1TIKwVo2H7o3qTjsHXe8FFy/A8LKDcCMEvloAG6RssepKCPnM1V1zWDwHq 0VrZHvGKUbdi0Lro2miP78FKfSk+rK3Dxm19OAD7eDm8oTOnwRpUt3xsSdGlSBilHJ0d V0sA== 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=JO2wLegCpNrdgi3MVYiqJ6L67Rb0gjmlZdOJuBwN5MM=; b=kz3FGh/TkD3JOv/Zb+6On7Q2z8qfr+01xzZKUYs9cz9pujZfVUkcSZh+C0ctEAO1wd 1g68HHcMVjlQDsTN21AfzSE63Mrsa+v0ZvmBjMiJSK5jmpdDYWo2yBPOPl2nl7pvhnM6 rQSVPzxa/9GEcLZ/3Xwajwukvhut0DiDlX4kUdFKE6XguOryI4C0tZfinLbQ1LPPjRoY bB2Z9eYVIzRLYIDUnPsPsJvfAy3d7Vqmpq7yC4d8Z1NzaVPlY1NYCxMCl6akxToJqdMp tBGZrTy+hpgPYUpwFHOOMYvrGhi8wdE/fsghzIfBBpXFT1OOEBf2FJsnvXGO5kKmIR/h nzZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="sSKkse/o"; dkim=neutral (no key) header.i=@suse.de; 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 10-20020a50874a000000b00427ded99232si8744063edv.477.2022.05.07.19.40.59; Sat, 07 May 2022 19:41:22 -0700 (PDT) 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="sSKkse/o"; dkim=neutral (no key) header.i=@suse.de; 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 S1352230AbiEEJVY (ORCPT + 99 others); Thu, 5 May 2022 05:21:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230466AbiEEJVW (ORCPT ); Thu, 5 May 2022 05:21:22 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66FBD4C430 for ; Thu, 5 May 2022 02:17:43 -0700 (PDT) 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 D8B711F8C4; Thu, 5 May 2022 09:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1651742261; 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=JO2wLegCpNrdgi3MVYiqJ6L67Rb0gjmlZdOJuBwN5MM=; b=sSKkse/oRcqJDa7vGLj6wdd6ebm7mMtVSS9h+6zEYLBcCAW1soT8G5oD0dIxWc370Z6fHm Y7w5gVyHh6whtPv+NxTuZBT3ujK0yyHgisSGfLr9gJLqqz8fmkYmITHwtZfBNkJooMA9Bl wRPCa6L3WP/fkQW3MMh56KRYu5tT7Ss= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1651742261; 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=JO2wLegCpNrdgi3MVYiqJ6L67Rb0gjmlZdOJuBwN5MM=; b=V2qdi7vHEsH96XJaRR4lQFLYLxnB6M+SxzeClu6/tYmb1iLaXfLJB1P6YsGM2D40f3Hn1q vqcUJl3Mdb0junDA== 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 61F5D13B11; Thu, 5 May 2022 09:17:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8bYlFTWWc2LMJgAAMHmgww (envelope-from ); Thu, 05 May 2022 09:17:41 +0000 Date: Thu, 5 May 2022 11:17:39 +0200 From: Oscar Salvador To: David Hildenbrand Cc: Andrew Morton , Michal Hocko , Wei Yang , Miaohe Lin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] mm/memory_hotplug: Refactor hotadd_init_pgdat and try_online_node Message-ID: References: <20220307150725.6810-1-osalvador@suse.de> <20220307150725.6810-4-osalvador@suse.de> <7946f6ca-fe03-e286-32f9-b22ff1edb52f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7946f6ca-fe03-e286-32f9-b22ff1edb52f@redhat.com> 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 Thu, Apr 28, 2022 at 02:35:11PM +0200, David Hildenbrand wrote: > BUG_ON(ret); > return ret; > > hm? This will never return :) Yes, this looks like a brainfart. It will not return __only__ in the case where register_node_node() fails, which is what we do right now, but then I do not know why added "errno -> register_one_node() failed." in the comment. I might have managed to confuse myself. Thanks -- Oscar Salvador SUSE Labs