Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1044680ybg; Mon, 1 Jun 2020 23:15:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT9elpCkxIsSBIhbOp/P8CBqoJ2trOzmayh8j/RdB8nWOuhFqZiDJusuPIPVyOOKVR3V1i X-Received: by 2002:a17:906:6403:: with SMTP id d3mr14350938ejm.386.1591078512647; Mon, 01 Jun 2020 23:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591078512; cv=none; d=google.com; s=arc-20160816; b=YjLDfZPaqnj36g3Jq3KoequHRNkXSDuckbSFHi4Ci5GRtndVIN6IFXWnL6yM78aPIz AE8hSdIboH6mo6YUrMl3oqSfb9NoSBq/jXyUQZRudxhrlFH61ms/KJxWEMuKbFGUx2Xu z56IjOQNuO/w8uciP0ZCkKowxVzEdl9QtTRFuZI8sXaRQgWQWAE+skQ8bBMQyv18X/c0 0/h2s4ujzht8GceD9PhShWHNaUUDjgahjRkO3dh5DiyA4RxFKJ5j5iZfUsntnsfaE9qc f9yNNUpN6blqu41obDiHIzBMH/m1rGSOjbnpZY4oWWi+EtgmE0Suiof7XrnBlaWLuXCE yGrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=l5E5NZTNMXL9LVD1enMFcScM41pW5CGE0GCl7dWtLug=; b=th3guL5CXVPSyVtk1S2s3utVjfIZwC0ooXjQ9sKsqo7OLL9FkPuttUKKfS+R3dgaU3 FBQ7827bCEwy/rJP7nFgh++9xu95tlxFfY86iOez1YiJmKzmmq3DW48V3+SH0WDux9QG Zydp0Azt2a64X1wEL8D82Jbt9sTCYPpBp+VKGLNJopVYUiD5Cxk2eXjxkWNAiXcg7d6e KKubwIxF0pmqNLpt0uFu5c/5Y31U0YR+Zci7XNBK93e0LjULcN+Hnjt5G6j9EcllFtDk NjvAz8cLqgxE5K19RMxDMZH1wCav1EWeuLicWEzEe2f1AkkRneFIjuHigBkACAHcFmz6 JCWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1Hjjl6n7; 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 ch8si934002ejb.345.2020.06.01.23.14.49; Mon, 01 Jun 2020 23:15:12 -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; dkim=pass header.i=@kernel.org header.s=default header.b=1Hjjl6n7; 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 S1726171AbgFBGNJ (ORCPT + 99 others); Tue, 2 Jun 2020 02:13:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:48836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgFBGNJ (ORCPT ); Tue, 2 Jun 2020 02:13:09 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A38F5206A2; Tue, 2 Jun 2020 06:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591078388; bh=rRykBBWnGs96WxsrQLDxmACWOa/UFVBVpsVgwWsmVXk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1Hjjl6n79wTkMOGwUGwEfwwZ3SrDwiog0vc+onIjwGGuMKSzKjJvPZlMTPoeBSV3T s00gQNv4yH6M7lX9kvpeFeAHUFFI/guixhK0D6JH5aXOm+zA8naHv9mb1MQJ2Wi8AE gcQr/P3/ruI6VfcDbwA53bx45o8NZmrvKj7Cj1H8= Date: Tue, 2 Jun 2020 08:13:05 +0200 From: Greg KH To: Christoph Hellwig Cc: Tao pilgrim , Jens Axboe , sth@linux.ibm.com, viro@zeniv.linux.org.uk, clm@fb.com, jaegeuk@kernel.org, hch@infradead.org, Mark Fasheh , dhowells@redhat.com, balbi@kernel.org, damien.lemoal@wdc.com, bvanassche@acm.org, ming.lei@redhat.com, martin.petersen@oracle.com, satyat@google.com, chaitanya.kulkarni@wdc.com, houtao1@huawei.com, asml.silence@gmail.com, ajay.joshi@wdc.com, linux-kernel@vger.kernel.org, Muchun Song , hoeppner@linux.ibm.com, heiko.carstens@de.ibm.com, gor@linux.ibm.com, borntraeger@de.ibm.com, linux-s390@vger.kernel.org, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-usb@vger.kernel.org, Josef Bacik , dsterba@suse.com, linux-btrfs@vger.kernel.org, chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, darrick.wong@oracle.com, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, jlbec@evilplan.org, joseph.qi@linux.alibaba.com, ocfs2-devel@oss.oracle.com, deepa.kernel@gmail.com Subject: Re: [PATCH v2] blkdev: Replace blksize_bits() with ilog2() Message-ID: <20200602061305.GA2258861@kroah.com> References: <20200529141100.37519-1-pilgrimtao@gmail.com> <20200601084426.GB1667318@kroah.com> <20200602055152.GA11620@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200602055152.GA11620@lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 02, 2020 at 07:51:52AM +0200, Christoph Hellwig wrote: > On Mon, Jun 01, 2020 at 10:44:26AM +0200, Greg KH wrote: > > But does this code path actually show up anywhere that is actually > > measurable as mattering? > > > > If so, please show that benchmark results. > > I think the requests are starting to be a bit unreasonable. Tao is > replacing a reimplementation of a standard function with that standard > function / compiler builtin. We don't put such a high burden on that. That's fine, but to say it is "faster" usually means we want to see it actually going faster somehow :) > And once the proper existing fields are used where possible as shown > in my reply just replacing the rest seems totally obvious - quite > contrary I think keeping a reimplementation would need a high bar. Your patch makes sense, I was not objecting to that. thanks, greg k-h