Received: by 2002:a17:90a:b81:0:0:0:0 with SMTP id 1csp1525734pjr; Fri, 30 Aug 2019 20:58:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTCQ2YjOToRpi0ABAKW3EPModu8pSjnExHyFEtYA3pnWVs2A744R9xfxvF9Odcb8fFdyuY X-Received: by 2002:a17:90a:930f:: with SMTP id p15mr1557142pjo.6.1567223917741; Fri, 30 Aug 2019 20:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567223917; cv=none; d=google.com; s=arc-20160816; b=YPaaF4x+i2OsnkCXfl+g1wp7A6dT8KKttrRQadIEB0B9g6TdYNFjsJNpC8KDd88S9v c4WOr6L63QRb5Mb2UA22NHt2ql4qkwqUddw6nvfL4W4YhfOKIy+3rIAJf/cuU7XE8izm hltB2mj4rKChOjo3P6N5CDs2J9hofJwYZg+voVwiXEUcRq+Z0b9Hgl436oBbyzWd9Xo0 M4kLuAHAzmPM6LPzVZ/q+xi3nyLRoKgiROZO8cDCeJeoDTXaepStZrpWXsj3XGx4piLL ZRC5cz88EHaQ68p6GNatjkzyxG+xYLt2Dmr7f5+1jyJRnWahxBpnZ+A83HlM/An/TizZ +5cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=WhroPi9cpUzNh6MRXZxEPO8JuR8RpBtcmYEwd6JVsHQ=; b=IRRrWy+5KltG768A57W6U0vo/kmM5L7lthUUy45yHxZNOe/ZI2mCz6GpMloKRI0Xu5 lfOQuqlo9BlTCCsVy7o+qUk3gKBJM7qSMGcykF7/auVid/QR0fE9gF1yJJwGsz5gZ9TZ wH/0wgA7qYIY6jF3T9e4dEHzw6K5kprL4xDJxMzpNg3UW4M5H5wgb0plMcxaJ7BmbKBd KG5y8bNaGiWPS/HsqG5T/jtjKV5bHldsfkPMgtLgs3BPGo1UdrZXcFJwcB8CVksCSJd1 O7+Z30ssL6LLm6MNpqK2mlrjNdSsAx3Ggvw/gsZOHc+eCpqWaDpaYc3FwZkgaSwXQQ7K K89A== 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 u1si6297316pjn.73.2019.08.30.20.56.55; Fri, 30 Aug 2019 20:58:37 -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 S1728408AbfHaDue (ORCPT + 99 others); Fri, 30 Aug 2019 23:50:34 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6151 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726942AbfHaDud (ORCPT ); Fri, 30 Aug 2019 23:50:33 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 573B89E32BE16FCE1349; Sat, 31 Aug 2019 11:50:31 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 31 Aug 2019 11:50:22 +0800 Subject: Re: [PATCH] staging: exfat: add exfat filesystem code to staging To: , Dan Carpenter , Gao Xiang , , Sasha Levin , =?UTF-8?Q?Valdis_Kl=c4=93tnieks?= , Greg Kroah-Hartman , , Christoph Hellwig , , 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> <20190830115142.GM2752@twin.jikos.cz> From: Chao Yu Message-ID: <29d7e697-3d74-bc0e-a756-713f682c32ff@huawei.com> Date: Sat, 31 Aug 2019 11:50:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190830115142.GM2752@twin.jikos.cz> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/8/30 19:51, David Sterba wrote: > 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. It seems the result of it is strongly related to arch and compiler, if we readd it after we just prove its gain only in one combination, I doubt we may suffer regression in other combination in between archs and comilers. It looks like we don't have any cheaper way to readd it? instead of verifying all/most combinations. > > 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) Yes, I agree with this. Thanks a lot for sharing your experience. :) The removal change has done and been merged into Greg's tree, let's consider to readd it later if possible as you suggested. thanks, > . >