Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp827103pxb; Tue, 12 Apr 2022 14:34:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsjRcUZBYv7pWaN2nwxbc5LILCe03aBqmDAKPo7jzWHkSSCH6P+CZSzarhuMq2A4YZBALv X-Received: by 2002:a17:903:1246:b0:155:c376:e5a0 with SMTP id u6-20020a170903124600b00155c376e5a0mr38334298plh.167.1649799249158; Tue, 12 Apr 2022 14:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649799249; cv=none; d=google.com; s=arc-20160816; b=t8zxWfoUAX+o4GrCVY/dPF+RRt1PottOs8wWOmmyuosuV8aJdJaTX5SVJ0CaglUhb1 SbUzxOb4b+vKOCztwe1OxpKjlWq1jGRhIrWCPT1rZ5ZTxh7r2XRIdeJteV3tM79mVv2N xnTEKZTP1asoxwgv1LCC4ISzpdMGQArV/C66Z3zSQZLYDxie30Wlqdk+EsHT2v9nWyYB DC+IpvRML4+ahf+GpginOdlc9yCFka578AY8HU7OzNlbd48xPici+Iim6fATGuZhmj/q MQHkw7nuOcGv52yf2TThrD/AeRGAb1xBAclDP/OLTwOutjR6ULp5i5ihQgd1LAWBz9DA uuCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=EOTb1DQ5T3tvzJWECRWfvUKR8Hc1CyPGEyTngR4bZGU=; b=xxQycaphPUkYwhK5cWv2NUSQv5iQfmh/ldzFzoMjreNulf/yLtQKHWKWxgacRIMplH flbgTaafXufb3UE2E9MZHgaTjlA6dDe1g8imr+BIYSB4PXVDS+hMA8EfTE5KlBfp4hLe 8G8/2BwrYHAMFEpaVxi9HIhe5JyvPha2GCwkm8vYGVMLwZCnEsZuhzs6Toeck3Pkfbpi Ck21lelYSUwEzuOF2q0dsw6vvb7ptn2qeyX8dSbn6j/3jW/leQiHOdQKQGP9t8bMVucE qydg57RoMfeY/kVMAsnFr3HRzB8f3mJgXor1k5plniMzCniExBnJMKcg4uN9EG6UVFCW zB4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Ru34jhYM; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j12-20020a17090a7e8c00b001ca2f879341si12477987pjl.16.2022.04.12.14.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:34:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Ru34jhYM; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4CB181168F8; Tue, 12 Apr 2022 13:40:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345648AbiDKKkz (ORCPT + 99 others); Mon, 11 Apr 2022 06:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234711AbiDKKkx (ORCPT ); Mon, 11 Apr 2022 06:40:53 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B89D643EDB for ; Mon, 11 Apr 2022 03:38:39 -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 6E03A1F38D; Mon, 11 Apr 2022 10:38:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1649673518; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EOTb1DQ5T3tvzJWECRWfvUKR8Hc1CyPGEyTngR4bZGU=; b=Ru34jhYMJZ28HD9uShZ0rqtS66eZ5sAIcsHD+SzBFmIyk/qX2R1sU4hgL+AWBg2lWQM1n4 EbrQBkjtYYl/SVUfFsgN7vIIwbgCNvz/HaDtMf6KHgvHBY24eK2N1kU6f2SEBCMZpxJ5UX VmfmX3DeX5wVZNVoRHg4T+2sJyZ6gC0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1649673518; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EOTb1DQ5T3tvzJWECRWfvUKR8Hc1CyPGEyTngR4bZGU=; b=FebQQU7IOomtxeosFQW+9vaGx4X3kzFydI9IxxDIK/VgR/nK2Xf1opaeEvLHjzRqOjtzgm R2c3Mq8u67FdiDDg== 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 368B413AB5; Mon, 11 Apr 2022 10:38:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5mO6DC4FVGJYZAAAMHmgww (envelope-from ); Mon, 11 Apr 2022 10:38:38 +0000 Message-ID: <888c1d6f-bdc7-2811-26cd-d8d46fdeb427@suse.cz> Date: Mon, 11 Apr 2022 12:38:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] mm/slub: remove meaningless node check in ___slab_alloc() Content-Language: en-US To: JaeSang Yoo , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin Cc: Ohhoon Kwon , Wonhyuk Yang , Jiyoup Kim , Donghyeok Kim , JaeSang Yoo , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220409144239.2649257-1-jsyoo5b@gmail.com> From: Vlastimil Babka In-Reply-To: <20220409144239.2649257-1-jsyoo5b@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 4/9/22 16:42, JaeSang Yoo wrote: > node_match() with node=NUMA_NO_NODE always returns 1. > Duplicate check by goto statement is meaningless. Remove it. > > Signed-off-by: JaeSang Yoo Thanks, added. > --- > mm/slub.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/mm/slub.c b/mm/slub.c > index 9fe000fd19ca..a65e282b8238 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -2913,7 +2913,6 @@ static void *___slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node, > */ > if (!node_isset(node, slab_nodes)) { > node = NUMA_NO_NODE; > - goto redo; > } else { > stat(s, ALLOC_NODE_MISMATCH); > goto deactivate_slab;