Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1354795ybt; Thu, 2 Jul 2020 03:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwotBiwnWm6emwboGp4aMZpcBaV1MQlKQCLAFvAzn9KW4LaZFlXcGCZqrl2dKPnPqO3vPtV X-Received: by 2002:a17:906:8595:: with SMTP id v21mr27640159ejx.333.1593685415497; Thu, 02 Jul 2020 03:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593685415; cv=none; d=google.com; s=arc-20160816; b=N8v3+14HQpzVrWb2MXPhxBBMdfIbgcU4hKm8V42XUcngLwMyg7USRY3ZazJxkUug8W Cgr1N555ceAYuoYY4CcFmCnyJAksXZRb8VhcJpfNT5JL+KSOk0/gkfLDiog1UwjT/ZN2 o4ZCriJ90Z7WJSnj1mwllkkzSYxIKMrek3T0HaERIET6mr8EfSINIqYyzRYs5moOT7PL QmosSM2adYKUAb54lhPevb4rUFGqAjJ5SWbHLUOqZr9oszxiyTQcnGKMHU67xZIUgFPE WdbTS3p2QT4LOlUXDSIKW3yB70VlX0FlyYBQrhqzfhobVIKpmxck4lWXademADvbtWpx 61tQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=y6QK1uUJZHQuZnFXHjM7RpcCfhjO+BnMr6K6R14LikI=; b=ym86nTegt3zXFMVj1IxNTL3j1NpFsu7Bs0eeXo7KmeGz66C8pDfAJKV4S9O0c9HLY7 NVCIl+/FXxpEWF+5+DyqD4xr2nQrLwSpcrZCVWm2bkFCFIOEIMzh07d0jvfrGrD7xQZj 66W7o6Qj7/Rt9gZQbAW2SaAeU+EFiewnzn7Jt49kbj5ir6aL3UhWPmDc0p/U81WYetPz tZfEUyjgJ6hdmOZDhCdVGNmQrloUuRRN7XY4H3kFpZgGEqjk/8yS3tGEixQYaEvDgd7O 0ZIbwNYh2vDAxlihdX7T5ZVx/Yfh9TURS8XgQPuUxMJlYPPUUpC+oiLFBmboT6ZUT8K8 OnhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=eS2AS63X; 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 z14si5610162ejw.332.2020.07.02.03.23.12; Thu, 02 Jul 2020 03:23: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=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=eS2AS63X; 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 S1728464AbgGBKWL (ORCPT + 99 others); Thu, 2 Jul 2020 06:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728402AbgGBKUp (ORCPT ); Thu, 2 Jul 2020 06:20:45 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7944C08C5DD for ; Thu, 2 Jul 2020 03:20:44 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id y10so28652031eje.1 for ; Thu, 02 Jul 2020 03:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javigon-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=y6QK1uUJZHQuZnFXHjM7RpcCfhjO+BnMr6K6R14LikI=; b=eS2AS63X4xHtWcaWVJuiQnZRL3FS5hl/kitkp/qfhE2U4bn44KsMkcI5ahaIUhkpta 6tvJeM0eRhhkkdT/HtD13QyqAXZlJuuAf/hOLUhwUyrVhrIjZLI2hfSmgt0Q4v08rWWl 8hS+jEqsMJSVlJnAruXLO3In7Lsa86+0XITBf7uyOLIOrdOeks10qjwobA7CaPzU54OH mdateSDMB8KYldO8l84nBECnC0GG8g0k4bICDJTD3s+k3LkuNDtPYYV+0R3HUmtsZXuS e9+cfSLqkoMb/HgGnCCw/eX3Iyfs42vr/mrFfAeVgD77VV9daKXn2j6SDsAxfRoi+XfU Ak+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=y6QK1uUJZHQuZnFXHjM7RpcCfhjO+BnMr6K6R14LikI=; b=Y+22rZrL1J0zsDNTXEyNwzvfAUeh8jxrqYreMFg/lGVxVHvMCwEOIcPVyrMHWZPa8g i1KsgmfHmPEqkmO1Nw7rfqXl7gazhtqOzT18J0vOVfmcmZI4ySeE51XGcFjMCTgtuU8R x5h6/bS98c1LhSR3DA+yl797SFhMLftxrDUZceZlXI2CWpDwPN7wt9HBCXYWGBHXB32Q LEzxpOvoe9Y4OqQvK8B48WbUn1opDWCy/6sgSc9spxCgjdNd5qauKDxypffGajGXsXvJ ++6zSubocYdfT4p3C0xA0mQSB9gETNmZeTTIcG+jFjjaiGObOWS6YOq3pvcJCYmCyMz0 eEjg== X-Gm-Message-State: AOAM532rNc69hRGLz1jeQWdrEidPNyogXZ+/hSV1PzaR91gczzy921di /PV5lwNpyY6LdmEuQ+Y7l2QNdg== X-Received: by 2002:a17:906:c142:: with SMTP id dp2mr28125124ejc.541.1593685243381; Thu, 02 Jul 2020 03:20:43 -0700 (PDT) Received: from localhost ([194.62.217.57]) by smtp.gmail.com with ESMTPSA id dh16sm9185934edb.3.2020.07.02.03.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 03:20:42 -0700 (PDT) Date: Thu, 2 Jul 2020 12:20:41 +0200 From: Javier =?utf-8?B?R29uesOhbGV6?= To: Niklas Cassel Cc: Jonathan Corbet , Jens Axboe , Keith Busch , Christoph Hellwig , Sagi Grimberg , "James E.J. Bottomley" , "Martin K. Petersen" , "linux-scsi@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "linux-block@vger.kernel.org" Subject: Re: [PATCH 2/2] block: add max_active_zones to blk-sysfs Message-ID: <20200702102041.qlehlokxel5ed6sf@mpHalley.local> References: <20200616102546.491961-1-niklas.cassel@wdc.com> <20200616102546.491961-3-niklas.cassel@wdc.com> <20200701111330.3vpivrovh3i46maa@mpHalley.local> <20200702084104.GA607715@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200702084104.GA607715@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02.07.2020 08:41, Niklas Cassel wrote: >On Wed, Jul 01, 2020 at 01:16:52PM +0200, Javier González wrote: >> On 16.06.2020 12:25, Niklas Cassel wrote: >> > Add a new max_active zones definition in the sysfs documentation. >> > This definition will be common for all devices utilizing the zoned block >> > device support in the kernel. >> > >> > Export max_active_zones according to this new definition for NVMe Zoned >> > Namespace devices, ZAC ATA devices (which are treated as SCSI devices by >> > the kernel), and ZBC SCSI devices. >> > >> > Add the new max_active_zones struct member to the request_queue, rather >> > than as a queue limit, since this property cannot be split across stacking >> > drivers. >> > >> > For SCSI devices, even though max active zones is not part of the ZBC/ZAC >> > spec, export max_active_zones as 0, signifying "no limit". >> > >> > Signed-off-by: Niklas Cassel >> > --- > >(snip) > >> Looking a second time at these patches, wouldn't it make sense to move >> this to queue_limits? > >Hello Javier, > >The problem with having MAR/MOR as queue_limits, is that they >then would be split across stacking drivers/device-mapper targets. >However, MAR/MOR are not splittable, at least not the way the >block layer works today. > >If the block layer and drivers ever change so that they do >accounting of zone conditions, then we could divide the MAR/MOR to >be split over stacking drivers, but because of performance reasons, >this will probably never happen. >In the unlikely event that it did happen, we would still use the >same sysfs-path for these properties, the only thing that would >change would be that these would be moved into queue_limits. > > >So the way the code looks right now, these properties cannot >be split, therefore I chose to put them inside request_queue >(just like nr_zones), rather than request_queue->limits >(which is of type struct queue_limits). > >nr_zones is also exposed as a sysfs property, even though it >is part of request_queue, so I don't see why MAR/MOR can't do >the same. Also see Damien's replies to PATCH 1/2 of this series, >which reaches the same conclusion. > Thanks for explaining Niklas - makes sense. I just looked at your patch again while adding other attributes and thought it would be worth asking the reason behind it. You can keep the reviewed-by on the 2 patches. Javier