Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2156512imm; Fri, 7 Sep 2018 11:40:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZMktum6jQtmmY5Bj78iTMgBsLmTZzQISRI6vLIoCrOsbfxxAy5kS1Pgjg4YsbvmomCFGxz X-Received: by 2002:a63:5c10:: with SMTP id q16-v6mr9574301pgb.452.1536345647042; Fri, 07 Sep 2018 11:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536345647; cv=none; d=google.com; s=arc-20160816; b=OsjnpENc9kgKhnICaSx0o3T5x58CiUNcpr+EgDBmjN8UlaGSPSP/0fp3TXWK8YynCY Tzi/8wIikpLEmH6tFLRtOY8c4Zpm8RRWPoUNAyPMGRilqzjexbolg1AoAw0SC1PWTaUM s9JrvhgLnsnFQinQtBcwbgSiR+BrVZhH4lBqzqQpkTJlpW9pm+IgjKAIETN7Cr70Ft/z nBC/4v/8dW8N3bg/Y27it52P7LRGQZtx+582WEOxrxdt5BcJ7aZ9k6kRfv5g+vcvBHqi zEvh8FsEOLdH0rZxk0A4Nb1O1qvoQrs1zAN9yTc7M7ZNKcxlD90aHX3fQfMNfPL00gn5 9eSw== 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:dkim-signature; bh=U9ICrNiuDX5QGblBXMfmPqF1GSUCKxt6OTSy0huNL9A=; b=QQuB5A6amNeSlfmvi3NmeDZvB+XTuaxkFt6KaZ0uq40MbhTm0UUwiX/qOA/iMoN6J1 oqjIu8A/PKCg4WlkkpMHLh1SGACfXJUc3HQtds8Kxxqf4YjQxWIVk2x6Sd9r0Cch6zx6 2c+4VQvYRcvJhgZW/7KOmSrTMOF7AFU6JPxcsIDUmyGwGczBHCa4jR1BG/c+CTJiPzS+ RtRuVAyVCGP1TIDGYhC/xKkvnzXr+DWgTqD0NdY0hPJYnibVp0YVNyD38qo5fvEhj15g Oi7Zisr0OYrGMbOOo0B9UEdQXZha7hu0Hj+yiLOGzqzQwf/RpAk2cjD2EAKNtkge672f d2Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S7Gp4FsX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14-v6si9737398pfk.275.2018.09.07.11.40.31; Fri, 07 Sep 2018 11:40:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S7Gp4FsX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727606AbeIGXV2 (ORCPT + 99 others); Fri, 7 Sep 2018 19:21:28 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:37345 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbeIGXV2 (ORCPT ); Fri, 7 Sep 2018 19:21:28 -0400 Received: by mail-yw1-f66.google.com with SMTP id x83-v6so5742646ywd.4 for ; Fri, 07 Sep 2018 11:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=U9ICrNiuDX5QGblBXMfmPqF1GSUCKxt6OTSy0huNL9A=; b=S7Gp4FsX+Wapj/bo4RdLgjTbB2sE42SDKQPyKLPGKEOM9N3r1vx5ZVll+HoA1PdSX1 G9mEHzAwo6zHnIrTxWe/M8+80pMUJg2Y8Gx+DB1LRg7kRIWOGVgzaModglBvJAerdOc/ ljWrVV3U+ikeNTNmnhDYtY6hax55MqwJXEYMtudcjkeEKPTnYRrWAiXTZ+MoMYbaYcUT NHiJi0GUiinLMCfapvfQNk9ibBhERLEggtC3ReeV1vgVoxI6xSRUq1Se4CiVDqNYYTM+ qt/t7BfPX/LfkIzUUFvRvRUow4I4rFLVnW4SBKdN7GClCEPDILjwyLsu1ow0GUjjtT/i zmsw== 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=U9ICrNiuDX5QGblBXMfmPqF1GSUCKxt6OTSy0huNL9A=; b=rxsT3fFKjCFW3twnocWOWaC6W1kVhpgoAxBm+5x6x8pnPspi01IuSkYodpi4o6lCCf EOop1+YSLapul4wroGdHu9WtnFQ8tgb+yvXdngWWmmA7dQrsgN7PgZouSuurJ4poRQje NDAkIr6dtktA/ARfZd9uXJr10oKli6auT2yhBpRwGXo/4IjHz2HTwa22EopyL8+GMT3h n3Fs4xFymSdqXP2W3KpeyDgWMuv5KbTwcUj5V5f34/pJGJfdG79QfBibMz10MzGESN4k 63deXM1h7kQxIuM2Mlo8wHx7dteRdNbA1NHg/+bPhvvI/AatZCFAo+HY6ol6CNXDWKyQ Bfww== X-Gm-Message-State: APzg51CgXTxGVEnGG8TqgFaPdXYtbBXRIcPRnhZC6fxx3n7gNbROqzP4 /IrG70jSITgcsYe3WuJpbMA= X-Received: by 2002:a81:af0d:: with SMTP id n13-v6mr4961951ywh.105.1536345555210; Fri, 07 Sep 2018 11:39:15 -0700 (PDT) Received: from dennisz-mbp.dhcp.thefacebook.com ([2620:10d:c091:200::9697]) by smtp.gmail.com with ESMTPSA id n187-v6sm5686758ywn.76.2018.09.07.11.39.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 11:39:14 -0700 (PDT) Date: Fri, 7 Sep 2018 14:39:12 -0400 From: Dennis Zhou To: Igor Stoppa Cc: Tejun Heo , Christoph Lameter , Igor Stoppa , zijun_hu , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH] mm: percpu: remove unnecessary unlikely() Message-ID: <20180907183909.GA84248@dennisz-mbp.dhcp.thefacebook.com> References: <20180907181035.1662-1-igor.stoppa@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180907181035.1662-1-igor.stoppa@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Igor, On Fri, Sep 07, 2018 at 09:10:35PM +0300, Igor Stoppa wrote: > WARN_ON() already contains an unlikely(), so it's not necessary to > wrap it into another. > > Signed-off-by: Igor Stoppa > Acked-by: Dennis Zhou > Cc: Tejun Heo > Cc: zijun_hu > Cc: Christoph Lameter > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org > --- > mm/percpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/percpu.c b/mm/percpu.c > index a749d4d96e3e..f5c2796fe63e 100644 > --- a/mm/percpu.c > +++ b/mm/percpu.c > @@ -2588,7 +2588,7 @@ int __init pcpu_page_first_chunk(size_t reserved_size, > BUG_ON(ai->nr_groups != 1); > upa = ai->alloc_size/ai->unit_size; > nr_g0_units = roundup(num_possible_cpus(), upa); > - if (unlikely(WARN_ON(ai->groups[0].nr_units != nr_g0_units))) { > + if (WARN_ON(ai->groups[0].nr_units != nr_g0_units)) { > pcpu_free_alloc_info(ai); > return -EINVAL; > } > -- > 2.17.1 > Sorry for the delay. I'll be taking over the percpu tree and am in the process of getting a tree. I'm still keeping track of this and will take it for the next release. Thanks, Dennis