Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1035183ybg; Mon, 1 Jun 2020 22:56:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyT3pNjORoHmacNCDuLhVA4VpcHEvOs6H9Oym4PHsDhIgAzhxx/D28xSSIVzvgrN8WsIsk X-Received: by 2002:a05:6402:1216:: with SMTP id c22mr25896243edw.208.1591077367501; Mon, 01 Jun 2020 22:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591077367; cv=none; d=google.com; s=arc-20160816; b=0/F4fTQZMSM1pRtNoBACVRU8dFBh9ODOJrkIxgsXO3EUq9SlZZDc+JOcDyQ891Ksg2 lC8UWZaNRIh8oql0CzJl87NFGAfoD0x1o7HLaz6EjHri/kKaX1KbLSA3ZeuecV3Co99n 7BUm0m8JexN4fche5/fLp4vsh6iOolYXMSJTQ7Ajch3s1+nISn1qI1ZBXIPA39BHpxhC KwYMCjGy3H1dzsT8+ZEM2rSFVU9nltI4uabC1Hbnx1Eu6fwVHdHstTSa/YSWedd7u0sc tNM5hdteTTggOCPZzkFxcDgNn0DXQhRXiZqA9DZYwmW2exfH0UOeJxzCr1/Q0s1EL/D7 zLTg== 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; bh=TxwTdu8bN4+HDm05DJeEkpsyJZFqljO0qS2pmAJCmH0=; b=TR3qHWvS9PBrOM/oXzkIqBJHFXTMIRZax+8JK7QgU85t/p2WTK1pc3be26JyLcok8b 7fJeEsRQ0MuRvgRTHa+lEItKedU7aNUZLDe7N6rWgjnt5y4fV6opucUju9Bgi5enHCu9 l28aN9oIf5vCGf0n9PFuqXOPDi9RYQMlQgekb8yGvB3VJ01JFvA618ADj2Z8y8PbylsO BYj0KdpvBlPj2I0mjsOqtXY1Y05QUxeqIKNlEFWM+TWjgfbWwrdapnQWJCO+8DiH9n2A dx/dnaJv/fHBivIwSVuenuGFkEHl08RXmL8Z4PC72bpldRDg87n3oM6+iFKlg1ToEiS8 qVGw== 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 u19si923259ejf.61.2020.06.01.22.55.44; Mon, 01 Jun 2020 22:56:07 -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 S1726140AbgFBFwB (ORCPT + 99 others); Tue, 2 Jun 2020 01:52:01 -0400 Received: from verein.lst.de ([213.95.11.211]:44953 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbgFBFwA (ORCPT ); Tue, 2 Jun 2020 01:52:00 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id B383A68BEB; Tue, 2 Jun 2020 07:51:52 +0200 (CEST) Date: Tue, 2 Jun 2020 07:51:52 +0200 From: Christoph Hellwig To: Greg KH Cc: Tao pilgrim , Jens Axboe , hch@lst.de, 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: <20200602055152.GA11620@lst.de> References: <20200529141100.37519-1-pilgrimtao@gmail.com> <20200601084426.GB1667318@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200601084426.GB1667318@kroah.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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.