Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp723004ybh; Wed, 15 Jul 2020 13:27:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsZCyH6xU8f7XdjyUuIIjiYngiktJv7hXZ4iBGsOORC0jrrzco+fUijxbobgXl0sh8tjU5 X-Received: by 2002:a17:907:20af:: with SMTP id pw15mr723056ejb.204.1594844865069; Wed, 15 Jul 2020 13:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594844865; cv=none; d=google.com; s=arc-20160816; b=rPpcJOE7NC/tDH/3HBuxEuzZgtLkuSLVokVrlQSnaMYXp/z/0LX2NfEcqXDV51w9Dx 19PvKn4Z1MlZyK0kB7eXZGsi0AsQlbwQ7aUEaslfXalAMwW02cbzGc+dqdP7ARekQ47Q rJdAHRhG10SSjgiFv1TJTplfOXYHxm7sPqx81MGV77YsmPlrcLOpqSo5GXZ/iBYUlJSV E/cYJpXGqyGIjOjUYuFHFnBM6RjDXbPnKSW2Cbuq0YsR5G+L5q4YobVhmNlrq9rJLvoq /lC5w6aCsB+KwMVxWdwRfeTxYt1WeQL4oLq4BkoePHVR5Bz7QzMxTBxOqRHEQLI6k7Fx y3Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Ef4z+9Yicabx/PBiZK3UH32DMjpUIF0+c5gTonOKaqA=; b=eLjZb3MZACL5Y5Jy6zkWPhJ7DK/SvgaktfKAEgaXoLoPTLB9hCfW0oanhFmIHJKn+L /NA5hRBPKdnW/WixeD2hUhExO25Ff6/D0rQk2FwB1spt1c5pbIzZx5z8gqop+RTbgOGQ uw0nd4eB5BMTHfYT8DywHj4ko9nlSHDOgVXXZFeioHJKofIFEmg4zfoTDDUqpJDL67Q2 1msY4Qc4GWUtXnMU8v2qFo2XwtxRbYSGkp/0IURVjiQttT1epA7+8vdugzpdQDzcuvP+ 73lffYqtT/aMf+QbrastYNUwjo/0tHPG46QocwmJfJwwuIzCS1rKgyXCphKDOuH38tzB T2UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=PpmzzilW; 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 o9si2125617ejr.243.2020.07.15.13.27.22; Wed, 15 Jul 2020 13:27:45 -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-dk.20150623.gappssmtp.com header.s=20150623 header.b=PpmzzilW; 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 S1727047AbgGOU0v (ORCPT + 99 others); Wed, 15 Jul 2020 16:26:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727037AbgGOU0u (ORCPT ); Wed, 15 Jul 2020 16:26:50 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2949C08C5CE for ; Wed, 15 Jul 2020 13:26:49 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id f23so3653729iof.6 for ; Wed, 15 Jul 2020 13:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ef4z+9Yicabx/PBiZK3UH32DMjpUIF0+c5gTonOKaqA=; b=PpmzzilWUzM1i/qTP1Ch+MKMpdOU0msPV2HQZbI56F4OnSxOQ8SwWWVRNy6yrunVFH /w24G6AhWABCKBxq6W9DTrAwMGwhOuy74V6lF49lC3Dn3xWDMQqxDo1EWGsZ5dGjALMH eKhOy4CqgkZMRcuq/fqcecn9cyJ7H+Yv1MO8xjTUKm4TuhrfEkgXklAPRnIuQcUzN8xr vKSGMpt1eM60SB5Fe5mTpyKY675HJSLlKGPjEdl6bOa6o0Fpqvzrih5jCMxo5TfUO56l 5MIg7m2BAdA0m8B3lbtrPoqhWKvHW7RheAaBBo/OMNlQqwmamVkGPYNgmo7HwR9BQ84h kPBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ef4z+9Yicabx/PBiZK3UH32DMjpUIF0+c5gTonOKaqA=; b=GyprRtOa/2HcozbZ08D2iexL0IXBJscJQpZ6tFir8fwvNeMh6u0ddNRVxxMvJH1NBC MvDnmMWTRDWXhgFrbtd9qY5EpBzRpY4G8IZR5rNktaSqur0bdJSPx4tQnHy0GAZ/Jtwc uBXZdAPgTcsw+ccvU6aQGYLvjQUAPk/FSuGrQLRbdv5XJJv6Y+obNNed69xy8nZ2x6+C d1GuwHuavE3ek2DPoA3PPdtTO5BkdAYP5Y3VLl9AbGsejv6q6vETk8r+tyv+8wiZkEGl X9/UZCLiK49mkX2UrU+bDZkLXvpw8doC47jT3BZ5fGD8eH5uUYCSiLr1O3YGfD1Qe1r2 3Ysw== X-Gm-Message-State: AOAM533htKlSwf/QmMCAxynT8dLzSr5MC1hlJOFDDT7Hh63p0D6Xk3kD Zk+yM6+8Hfxffjyj06gwq/Wzeg== X-Received: by 2002:a6b:640f:: with SMTP id t15mr1044364iog.175.1594844809116; Wed, 15 Jul 2020 13:26:49 -0700 (PDT) Received: from [192.168.1.58] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id a11sm1736327iow.26.2020.07.15.13.26.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jul 2020 13:26:48 -0700 (PDT) Subject: Re: [PATCH v3 0/2] Export max open zones and max active zones to sysfs To: Niklas Cassel , Jonathan Corbet , Keith Busch , Christoph Hellwig , Sagi Grimberg , "James E.J. Bottomley" , "Martin K. Petersen" Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org References: <20200714211824.759224-1-niklas.cassel@wdc.com> From: Jens Axboe Message-ID: <58eac7f6-ab09-7f96-eb02-a19e8153e89a@kernel.dk> Date: Wed, 15 Jul 2020 14:26:47 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200714211824.759224-1-niklas.cassel@wdc.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/14/20 3:18 PM, Niklas Cassel wrote: > Export max open zones and max active zones to sysfs. > > This patch series in based on Jens's linux-block/for-next branch. > > All zoned block devices in the kernel utilize the "zoned block device > support" (CONFIG_BLK_DEV_ZONED). > > The Zoned Namespace Command Set Specification defines two different > resource limits: Max Open Resources and Max Active Resources. > > The ZAC and ZBC standards define a MAXIMUM NUMBER OF OPEN SEQUENTIAL WRITE > REQUIRED ZONES field. > > > Since the ZNS Max Open Resources field has the same purpose as the ZAC/ZBC > field, (the ZNS field is 0's based, the ZAC/ZBC field isn't), create a > common "max_open_zones" definition in the sysfs documentation, and export > both the ZNS field and the ZAC/ZBC field according to this new common > definition. > > The ZNS Max Active Resources field does not have an equivalent field in > ZAC/ZBC, however, since both ZAC/ZBC and ZNS utilize the "zoned block > device support" in the kernel, create a "max_active_zones" definition in > the sysfs documentation, similar to "max_open_zones", and export it > according to this new definition. For ZAC/ZBC devices, this field will be > exported as 0, meaning "no limit". Applied, thanks. -- Jens Axboe