Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp537308pxu; Wed, 7 Oct 2020 09:20:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7FH8/KCW0kbBrin2OM/iglAh75v0bIpf4OAOD4s5xZD1sS4NvzbIYzXIJrL0J9p0puw2H X-Received: by 2002:a50:ef12:: with SMTP id m18mr4507477eds.313.1602087635082; Wed, 07 Oct 2020 09:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602087635; cv=none; d=google.com; s=arc-20160816; b=vqa+Guobq52A8x3kUHxBdF4Jukc40PCKRGeesuk/P1aTp1eMnczX/B5Kio052QiYJ2 paVCb/juLXOXMbVOOK19mwpLFR+E5hJunsfUChmBTsIhpqFcfqdDPAJOGrceJ56lao77 6tfTDA7BMRFxxPTwme1ihrGXzxk9+EIOK6ZslO9LoHkzJ0iXQoz7sJpaVUcAFgrub80g 5wqqbk2uz0HtoHEjVvGvaW/dGfYm3O6Ayv7AWteiPO9NZOi0U90oWtE4NNXHUwEW1jlN 3W/cnWaM/ZYTRA7VJq3YWUopGRAHnyvu8NDXZjVPtK3l4iKyAR8ojUjQtJR9V88/vvHq uSBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:dkim-signature; bh=zJTcEz7rUO3DGiHLK/RyvreZiaypX+Dmx17AyGTD6II=; b=N+xMNIdR3SHV7yI/kAHeaI3yQ2oT+hnNz3TuVM1erzbxB76fzGexp8Ioz7rsnLo3NW oSqdw8bh+67P4/QewBBSHIz+Ly53P2/wG7X6fxPxAKeDCTmXHpNTlsE+87QJFK5yYt2F WTN+bLhVs1zul5cVbRCpIERvGc5FqeXjSVwc2GnVbDH3Lo4ALw9T/vm1b/MNw1YPimp2 Ds5Xb8sPtOnLKhXo+bFMrD/FWC0P5jrOzVOH/PUbsn/KxShPHrbNtvQdrZ7PkBsZoDoH LnMnzwmocIKO03SB61Yv2XWRXJFUQMM+wnVVLwdLxJbqv+3T3C1+A3YWp4ookaWnhGWD NFbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@deltatee.com header.s=20200525 header.b=HD9tfI+N; 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 oi22si2117956ejb.85.2020.10.07.09.20.11; Wed, 07 Oct 2020 09:20:35 -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=fail header.i=@deltatee.com header.s=20200525 header.b=HD9tfI+N; 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 S1728813AbgJGPxu (ORCPT + 99 others); Wed, 7 Oct 2020 11:53:50 -0400 Received: from ale.deltatee.com ([204.191.154.188]:38936 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbgJGPxu (ORCPT ); Wed, 7 Oct 2020 11:53:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zJTcEz7rUO3DGiHLK/RyvreZiaypX+Dmx17AyGTD6II=; b=HD9tfI+NEJ/ZdYCnN4Vyd50bYD 9djIMgLs0BWD50ZiwbQya7jiej3acTgbPxw18TmVEgwO8a420Ypd4LhODFw8VATpEPF+s3SB6HNrC noG3ktwUXoCsQyPK0Cbx0RTHd61kbB73QbI2oSsu7nCPPSrZB3oFnibXik0Noa9i6a07TdUnxZkME oSwWxUx1rJg6mRn7ry1xCvHWg4ExyP4/ow0E20qZsqq0bS+hUGu/yJ7C8j/1YD1GQX68JDHYEVRYI TV3CMqTd771oXRH36uFy+c/c6Ywg5+4RKH8RyNAHfP3BbAQwxweepHm5Bf+WYGAQzGOyOMDD4E90k 9ZzsTvSw==; Received: from s01060023bee90a7d.cg.shawcable.net ([24.64.145.4] helo=[192.168.0.10]) by ale.deltatee.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kQBlC-00009t-E7; Wed, 07 Oct 2020 09:53:47 -0600 To: Chaitanya Kulkarni , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "linux-block@vger.kernel.org" , Omar Sandoval Cc: Sagi Grimberg , Stephen Bates References: <20200930185422.11494-1-logang@deltatee.com> <20200930185422.11494-4-logang@deltatee.com> <868f8fb6-6024-d60d-a9aa-6513b9d0986f@deltatee.com> From: Logan Gunthorpe Message-ID: <2af98b64-1f3b-6570-d5be-a2e2bc4950f9@deltatee.com> Date: Wed, 7 Oct 2020 09:53:44 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 24.64.145.4 X-SA-Exim-Rcpt-To: sbates@raithlin.com, sagi@grimberg.me, osandov@osandov.com, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Chaitanya.Kulkarni@wdc.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH blktests v2 03/11] common/xfs: Create common helper to verify block device with xfs X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-06 6:20 p.m., Chaitanya Kulkarni wrote: > On 10/6/20 16:59, Logan Gunthorpe wrote: >>> The mount dir should be a parameter and not the hardcode value >>> to make it reusable. >> I also disagree here. It is already reusable and is used in a number of >> places; none of those places require changing the mount directory. If >> and when a use comes up that requires a different directory (not sure >> what that would be), a parameter can be added. It is typically standard >> practice in the Linux community to not add features that have no users >> as it's confusing to people reading the code. >> >> Logan >> > Well if you are making a helper it should be generic if you have a usecase, "Generic" isn't a binary yes/no quality. Why add the mount option (that nobody is using) and not a size option as well that nobody uses? For that matter, fio has a ton of options we could expose. (think io-method, read/write pattern, etc, etc). The criteria we decide upon which options get exposed as arguments is what the code that's actually using it needs -- not what's available or what you imagine future use cases might be. If there are no users in the code it should not be exposed. If a use case comes along, an argument can easily be added when the new test is added to the code base. > mounted on different mount points not just one which is important testcase, > > that will require a prep patch. So? That's normal. > Why can't we do that right now when we have a clear usecase ? We don't have a clear use case that's being added to the code though... We have an imagined use case that hasn't been written. Add the feature when you add this use case. Logan