Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp144744lqr; Wed, 5 Jun 2024 01:23:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXax7SP6Bdu5zPQTdFPENix7jeNeYuYVbHn33SatsHAskHozXlBlReOvmMKOm+9GDpyq5qy4Hcqeyi+Uh3g0XTKkQU2SDK/ZV+ixNFjSQ== X-Google-Smtp-Source: AGHT+IGem+HzafD/jqLdFXI12Gf8aKVoF+GybQnrW0MmL2WwkI7bfi/JkMxnVB0bLbjAO+8h1iys X-Received: by 2002:a05:6e02:1fce:b0:374:b01e:b7d5 with SMTP id e9e14a558f8ab-374b1ee2949mr20127625ab.2.1717575788183; Wed, 05 Jun 2024 01:23:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717575788; cv=pass; d=google.com; s=arc-20160816; b=0wfoEm9vOVhlSG6auZprd1RDXJqq835pEEmfhqIBcO0mNWjmUZwk+e9L8qqbx66Z47 chweAJJ6vHCPAhhNon1Qa2UsYx8LD9fr9eXpu6xwOXcd3sC18nNVI1q2YQGPcft01zX1 +tpUgSEoMbwhyjVU8e+YMsiP8Mh2tCTT/GC2ayJ+UbISr33yg4cGeQP6vJg6BqGOZmt3 AA3oUzuP5+0ZC8GVRszEzpAEylPoLYxeNyw+xw8pC/OOncV1yUYF28cIw1jCiq07TUDY SHG5KouV1RYp3ObgrKn+hCWY2HiJo8jiXz4XU5X7mt11uXGkhax+i64ULJM72ynorJTM gZ1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=/f9ERk5E8Kinjldjve5YYHagSWiCZ9m7JRxY182KBq8=; fh=q5iH5unKhzSIAbkrZAuvYcibiozOs0ME3IZyN3YLIng=; b=G+8tsEvDi7E71bn+gXNKuVAyPou8k+GbExzAOUG/uIfHr/lSYhhxu+AaDD91kve4fY mxOLCttxUgoCux2I1LLwdapBAM1tfm8PLNHjJx9cZm8iBt9C1+W8GLc2miVo5gMhoO5a Q+i634PzXTgD/cGQrfbr5bzQJLGHCoj6f/N8wzWmRVaiwk7Eg0FO/jl2FBgg7YQyC9Bh BYGaxpCsPVXp8yR5wmI08FXCiekM7rsJPXmqfbo97rynBYWgXv5xrNNQ6Fj2ea4kwzgH gauEgYBdArr1v5yBexArnXpFGRgWlVyrUhcXGLZ3GockF2cZwi+IWHhgx/JcGYDItIEw ilGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-201974-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201974-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e0704dsi9552387a12.355.2024.06.05.01.23.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:23:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201974-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-201974-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201974-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C15EE2816D3 for ; Wed, 5 Jun 2024 08:23:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD375190077; Wed, 5 Jun 2024 08:17:58 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F21F4963C; Wed, 5 Jun 2024 08:17:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717575478; cv=none; b=ubed2u77+zRVcKxZs8pQbh0XxwQsYyB4IbCVUCxsf85Uh4ktGmpu1VJ/QC78/qF7mzx3UhOtJTEnArGOcAAM+60jxyc8+w0f00JPxZ9gVPyVKAiBwjY4UDqxs7lsMw5OpWR3z/9yBGLELjTRLf+VfFWWhNAIraxZZPPQdNXQ7jg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717575478; c=relaxed/simple; bh=juYGrTutr79jdUfWQOt3iuVA7qENFdoWQh8QbQTezE4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DT9mtwkBPZiExBDs2PgP4W0izNYUhX2XrR4VU4ClewnAsQi/jew6S/UOpC+10n0ia/23lppBHzrrANzHm2gonT8aykhGE5YKKjOsYKbgfcUrhqzVgg2N0tbks5drlcDHlgQxRXSPHxQ6mD36OVf3zLMJBm2ianAU/yfG3YrtPsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 6E1DB67373; Wed, 5 Jun 2024 10:17:49 +0200 (CEST) Date: Wed, 5 Jun 2024 10:17:49 +0200 From: Christoph Hellwig To: Hannes Reinecke Cc: Christoph Hellwig , Nitesh Shetty , Jens Axboe , Jonathan Corbet , Alasdair Kergon , Mike Snitzer , Mikulas Patocka , Keith Busch , Sagi Grimberg , Chaitanya Kulkarni , Alexander Viro , Christian Brauner , Jan Kara , martin.petersen@oracle.com, bvanassche@acm.org, david@fromorbit.com, damien.lemoal@opensource.wdc.com, anuj20.g@samsung.com, joshi.k@samsung.com, nitheshshetty@gmail.com, gost.dev@samsung.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, dm-devel@lists.linux.dev, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v20 01/12] block: Introduce queue limits and sysfs for copy-offload support Message-ID: <20240605081749.GB18688@lst.de> References: <20240604043142.GB28886@lst.de> <93f6bb98-e9b4-481e-afae-c2b4d90e686b@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93f6bb98-e9b4-481e-afae-c2b4d90e686b@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Jun 04, 2024 at 09:05:03AM +0200, Hannes Reinecke wrote: > On 6/4/24 06:31, Christoph Hellwig wrote: >> On Mon, Jun 03, 2024 at 06:43:56AM +0000, Nitesh Shetty wrote: >>>> Also most block limits are in kb. Not that I really know why we are >>>> doing that, but is there a good reason to deviate from that scheme? >>>> >>> We followed discard as a reference, but we can move to kb, if that helps >>> with overall readability. >> >> I'm not really sure what is better. Does anyone remember why we did >> the _kb version? Either way some amount of consistency would be nice. >> > If memory serves correctly we introduced the _kb versions as a convenience > to the user; exposing values in 512 bytes increments tended > to be confusing, especially when it comes to LBA values (is the size in > units of hardware sector size? 512 increments? kilobytes?) Maybe. In the meantime I did a bit more of research, and only max_sectors and max_hw_sectors are reported in kb. chunk_sectors is reported in 512 byte sectors, and everything else is reported in bytes. So sticking to bytes is probably right, and I was wrong about "most block limits above". Sorry.