Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1503455pxa; Thu, 13 Aug 2020 09:48:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+e6B+g39CqLL2SUMtR3V786ajjxFntaUwL2u8dt2fm9EEltnLksztxWJ2+x1/gPd04bp5 X-Received: by 2002:a05:6402:2285:: with SMTP id cw5mr2410170edb.242.1597337337613; Thu, 13 Aug 2020 09:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597337337; cv=none; d=google.com; s=arc-20160816; b=Vtq5mGYrKnPRmzb2xQOAOQG5T0L1nm5veHOMgmuulbKF6Nf/jU8NA0vJH7hVmcKNuO /ZdejirXc5I6gkkPaI/UlH9ChG4evkEnOcr/I8d63kz5e/NH1ohiUOOfCwYnVopqDbbl S0Ti3CBugMrYSjd86Kj873Pm4hP22fjFI0bWRHb3fx+StvgRimP6Lzic8p2lnYhBZU3c tFjY25B7atIRAPanZ7YiYYU69Qm/RDQVddXLRel2pBchpq2tvseoFjlT07B45ywswlEm ti5CgDKb5CAXn3RxUbg51FyYkMHKJAUkx56stj80ijwDsdjuTw2Z0OvjV8+7qQ8hr3qm OuXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Auy9bObFMg6th1AQ4NEY0/LUKY6gIkKbMn1dsYIkOVk=; b=imFe26hXlCS56AMTT+Q/0tZrbWGQrte0jgv4AoMswoInHY6l4m5LsLtKvIzqYuilSE h0dnR1Y+CHOOipkiqh56LcNFrAuF9t7uOFSnoi/t4aevd1XguUJoHBeJKpWQpkXLXG+G iu0Yp0sZUNuqatiyOLvLh5Zj7fZF1g7xO2l7zMnTU4jCy6VaYL1h8cYQwFtB0jbhbVhO AvHJJ8VLzQxz6iJYa9G/5nzueFkzwILzlGiZVfQJGwy+yClkvlS/u1maoXK1IW3LfYkc WU+1lZdpVg7fqbTs7wQ1SXxrNdP8o4oqrNgTo7PDVhZ38EytBy0eZ14y4JhpdfKQJGTV evcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si3445718edw.385.2020.08.13.09.48.15; Thu, 13 Aug 2020 09:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726359AbgHMQrb (ORCPT + 99 others); Thu, 13 Aug 2020 12:47:31 -0400 Received: from gentwo.org ([3.19.106.255]:35912 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726131AbgHMQra (ORCPT ); Thu, 13 Aug 2020 12:47:30 -0400 Received: by gentwo.org (Postfix, from userid 1002) id 6979B3F1CD; Thu, 13 Aug 2020 16:47:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 675B53F1CC; Thu, 13 Aug 2020 16:47:30 +0000 (UTC) Date: Thu, 13 Aug 2020 16:47:30 +0000 (UTC) From: Christopher Lameter X-X-Sender: cl@www.lameter.com To: Abel Wu cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , hewenliang4@huawei.com, hushiyuan@huawei.com, "open list:SLAB ALLOCATOR" , open list Subject: Re: [PATCH] mm/slub: branch optimization in free slowpath In-Reply-To: <20200813101812.1617-1-wuyun.wu@huawei.com> Message-ID: References: <20200813101812.1617-1-wuyun.wu@huawei.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Aug 2020, wuyun.wu@huawei.com wrote: > The two conditions are mutually exclusive and gcc compiler will > optimise this into if-else-like pattern. Given that the majority > of free_slowpath is free_frozen, let's provide some hint to the > compilers. Acked-by: Christoph Lameter