Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp621220ybl; Fri, 30 Aug 2019 04:52:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxI29SLw84UKNWW2U6+AdWHqOaNNADq7hZMpeslGRvav5+uVfS9k1iYMuVEsei2eHJ1YMrX X-Received: by 2002:a63:195f:: with SMTP id 31mr12868251pgz.225.1567165946964; Fri, 30 Aug 2019 04:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567165946; cv=none; d=google.com; s=arc-20160816; b=cCMWfACrbWvXY46aNCIMY1o4Y9C08zgQApZvZhj5mtGRguvlhtzQiOZsHNx7PSWGNR aCpOjjMMvIMGPT5Zm1o6ZCMHBhAzYO9ulJIKPLOEKK6/X1SqPlbW19F+rTUaTluQfcSz Z7y939T1mRkhhJ7TdHBDmctpylwSc7KNSsoh/+9Q57+fGbGy3ND3tixJtBSgDFfyrBCt ueAfCia8BtrS4H6mr1vw7VuJjPmm3UI1aoa35LjxYHZgFerKit1xwFtCm+9k/na7Puxl p84zbsODmuXKZ0eOK1t19ixBxaqhED2HG02A44+hvq9fgTQ6DQqSLotbSvHC3EIElAmo +14Q== 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:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=Gp2TUp+1G5YkyNxT1fOWwhmnWYWo4jTFZQf/Dl5gi44=; b=gpi58+Wl4T5iB5EQX6b7oRyR3pFnrIWy9tmejb28HYJKLyqnjNwW48Zpfy7h35tHD8 8GO7+eBeLwBaaVBXU3f3RaIXGzuV4qZRN0jk+KDTenPhzW6oLTOdYKQs7lF+WBb07lr3 xwXrCXyH4v50gAzDV8l6DqxIq0frnVZ04jaKHFZIKOlEfKefBxcUd+XfZOHSD/3o8F9h H/apIIQCvzwmOQbX6R4eaUBVKxC2/4tS9hB3pUahNxpG0RYGUVxTVvXfFizlwosgWeJY WSJWjQ1VNMrSitWkql+vKs6mSgsLkYwsEo/pRi7NIhW2SWGacbEq85WnQzhPFPBJTEe6 fNCQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si4490520plm.292.2019.08.30.04.52.10; Fri, 30 Aug 2019 04:52:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727635AbfH3LvX (ORCPT + 99 others); Fri, 30 Aug 2019 07:51:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:34428 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726969AbfH3LvW (ORCPT ); Fri, 30 Aug 2019 07:51:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6E999AFF2; Fri, 30 Aug 2019 11:51:21 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 690C2DA809; Fri, 30 Aug 2019 13:51:42 +0200 (CEST) Date: Fri, 30 Aug 2019 13:51:42 +0200 From: David Sterba To: Chao Yu Cc: Dan Carpenter , Gao Xiang , devel@driverdev.osuosl.org, Sasha Levin , Valdis =?utf-8?Q?Kl=C4=93tnieks?= , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Christoph Hellwig , linux-fsdevel@vger.kernel.org, OGAWA Hirofumi Subject: Re: [PATCH] staging: exfat: add exfat filesystem code to staging Message-ID: <20190830115142.GM2752@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Chao Yu , Dan Carpenter , Gao Xiang , devel@driverdev.osuosl.org, Sasha Levin , Valdis =?utf-8?Q?Kl=C4=93tnieks?= , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Christoph Hellwig , linux-fsdevel@vger.kernel.org, OGAWA Hirofumi References: <20190829062340.GB3047@infradead.org> <20190829063955.GA30193@kroah.com> <20190829094136.GA28643@infradead.org> <20190829095019.GA13557@kroah.com> <20190829103749.GA13661@infradead.org> <20190829111810.GA23393@kroah.com> <20190829151144.GJ23584@kadam> <20190829152757.GA125003@architecture4> <20190829154346.GK23584@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 10:06:25AM +0800, Chao Yu wrote: > On 2019/8/29 23:43, Dan Carpenter wrote: > >> p.s. There are 2947 (un)likely places in fs/ directory. > > > > I was complaining about you adding new pointless ones, not existing > > ones. The likely/unlikely annotations are supposed to be functional and > > not decorative. I explained this very clearly. > > > > Probably most of the annotations in fs/ are wrong but they are also > > harmless except for the slight messiness. However there are definitely > > some which are important so removing them all isn't a good idea. > > Hi Dan, > > Could you please pick up one positive example using likely and unlikely > correctly? so we can follow the example, rather than removing them all blindly. Remove all of them and re-add with explanation if and how each is going to make things better. If you can't reason about, prove by benchmarks or point to inefficient asm code generated, then don't add them again. The feedback I got from CPU and compiler people over the years is not to bother using the annotations. CPUs are doing dynamic branch prediction and compilers are applying tons of optimizations. GCC docs state about the builtin: "In general, you should prefer to use actual profile feedback for this (-fprofile-arcs), as programmers are notoriously bad at predicting how their programs actually perform." (https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html)