Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1006400pxa; Fri, 28 Aug 2020 00:34:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzwkIpL511/K50f7a/YVkKIOcEr/JqbTZ6Og/+NSbMCMPradYIWUbV63SITx9vEE5XujGf X-Received: by 2002:a50:8f44:: with SMTP id 62mr506492edy.351.1598600050698; Fri, 28 Aug 2020 00:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598600050; cv=none; d=google.com; s=arc-20160816; b=avkg6r9QSrdMiyF30KeP0dRCMYtwQzeBRczS0n/bCZpnfypENeTUw3mE+3e1pdKmFL xMgLCMjMTM/aGKorShk/wZ2znHT4lctgNk1Bgh9OUbGLK5gqkaPQRZPcM6hSt9EsdnH1 hiryHN7YTVJsBVrfkbTlRtxJUCK4FdsQrYnHgAtZL79UZXwgW5/gftOQKE/RFf7Wu89m 3ShJAY1MYwtCzskYUHFFrXHNISl/q2JYFB5mJCacP+Jq4SCzlTZZ+z+DmZ+oWfRjcXpB 33iX7xN4rCrtnZpVOkYa/0AK4hGWTPd0+6a1Uz4weakep1qg5K4Lp4qw/7ZhHq3ja5k5 gMWA== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=a5s0/JiBwDu+DMXjUmbh7t1+Z3AMnuppIpSXG5SFqtk=; b=doxEsQgSx3MQ8LgFO6VrRZvSkQLRVuGeqA+S89nL8UZ2OL6p3odvsyZMcRSlpC5mE9 lfvcar9A554yebZ5oFeKIi4V5rr7mS34ylnYr85qDgdPG1JDbQy5Tq9vSLkR/eBvycMk c+Ss3X1oYD51bgHHJHCfNsIe/MBYgHaPQbC5UFfSzSYW8BA9df+tYYpXXShRNAtbLejx m2ReGQcgpNcNrfXh2c1kU0eZl7OrOXNQQrliKku6aDzeFpgy7apmmOrtBnhAR7tENYcO U3TgXDJbt3uk4AB0qtBEhY0AqiYjpGcPSZwsKrT5pRo8GX72arRNrDnomVuZ4iw5whuJ 5qQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@irrelevant.dk header.s=default header.b=htl0u7Z3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=irrelevant.dk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si61768eds.561.2020.08.28.00.33.48; Fri, 28 Aug 2020 00:34:10 -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=@irrelevant.dk header.s=default header.b=htl0u7Z3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=irrelevant.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728150AbgH1HcF (ORCPT + 99 others); Fri, 28 Aug 2020 03:32:05 -0400 Received: from charlie.dont.surf ([128.199.63.193]:35360 "EHLO charlie.dont.surf" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbgH1HcE (ORCPT ); Fri, 28 Aug 2020 03:32:04 -0400 X-Greylist: delayed 544 seconds by postgrey-1.27 at vger.kernel.org; Fri, 28 Aug 2020 03:32:04 EDT Received: from apples.localdomain (80-167-98-190-cable.dk.customer.tdc.net [80.167.98.190]) by charlie.dont.surf (Postfix) with ESMTPSA id 11AADBF554; Fri, 28 Aug 2020 07:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=irrelevant.dk; s=default; t=1598599379; bh=0hzAo9FTat39DkkPYrYwGvm52R/0SpyDYrV4O9m/u7c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=htl0u7Z35SclLEMyhH4MfeourXPOjtvoZHDyN0JZGfFriXOt+HusIjuIDs54Xsn47 nOAoe56SQp0EebyeA3msS0A1AdqKuvm3XaOeo2pL8SlltuQBCt1VNBWmD9OLmeuXjP AKTJ4aPQeEjvQkgTUEGgiafV+uP+rlGJwbqdU9WloM1zN8IaRmKnmG8zRf/BbT0nfS yTwLoSIiIpMxAvbwq0OFoYpqtwMygTn4+k/rLV0zlOuDUf+Ex7NAlZamS7mTLNWDdj INEEONODivSphxl2R6JVW6m3abLeQee6xf70FoJioGHuB+bq2bIsuhfpQCvHZqPSWu Az6aGy7TyXqDA== Date: Fri, 28 Aug 2020 09:22:53 +0200 From: Klaus Jensen To: Damien Le Moal Cc: Niklas Cassel , Jens Axboe , Johannes Thumshirn , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] null_blk: add support for max open/active zone limit for zoned devices Message-ID: <20200828072253.GA1331347@apples.localdomain> References: <20200827135018.63644-1-niklas.cassel@wdc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 28 07:06, Damien Le Moal wrote: > On 2020/08/27 22:50, Niklas Cassel wrote: > > +static blk_status_t null_finish_zone(struct nullb_device *dev, struct = blk_zone *zone) > > +{ > > + if (zone->type =3D=3D BLK_ZONE_TYPE_CONVENTIONAL) > > + return BLK_STS_IOERR; > > + > > + switch (zone->cond) { > > + case BLK_ZONE_COND_FULL: > > + /* finish operation on full is not an error */ > > + return BLK_STS_OK; > > + case BLK_ZONE_COND_EMPTY: > > + if (!null_manage_zone_resources(dev, zone)) >=20 > OK. So you are hitting a fuzzy case here that is not actually well descri= bed in > the standards. That is, does finishing an empty zone necessarilly imply a > temporary transition through imp open ? Which you are assuming is a yes h= ere. > Personally, I would say that is not necessary, but no strong feeling eith= er way. >=20 For ZNS, the spec is pretty clear that ZSE to ZSF is a legal direct transition. So I don't think the transition should be allowed to fail due to a lack of resources. --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAl9IsMgACgkQTeGvMW1P DekA5Af/SC+I2hGvEBx86dF1Cb0s1pQyVLvhGOADnaCC8Ic1C840NJ/USCBMv7Eo 8h8/2VmjD/DHttLE/eIAbOWzO2ij7PYJg6Dge4joBEZTg+4yYAt8I+TyfrqRGL5j FsNgtIlmnPSOvvjYkzLYrMQ/KHm9mk5q/gZcJIOiu02O7a3TOAI0jXuFWxfjq0s2 u5v1k936yY01g5Ce4AlR5WSD4cSR4GwkGJNXza9yyu1KjnozCx4ahBVH4acy3xow H+tUloNIieacv0u9bAmeqPpKMdRhj+USCZkm9kXEP/SUeF/vPY12QBgSnWVxF9AU qd/zt+tcRzfzTzvulSfcpdgm/UtILQ== =blqO -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--