Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp229838pxk; Thu, 17 Sep 2020 01:08:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSPQXBh8ztgdqvaUd7AWh5pAhOGbfEXcAO8uWQJFrmMjYs2Hc63z70SX3Vm0bKh1TkowFL X-Received: by 2002:a17:906:2747:: with SMTP id a7mr29139345ejd.301.1600330091795; Thu, 17 Sep 2020 01:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600330091; cv=none; d=google.com; s=arc-20160816; b=jXUiIcGNu/8LTYJiaiiv2mIcqfffzlZHquNJhdDpR5QB11X88xMnbOqj+FUsV7OUAU 6lwo+8QPJgKzcATSVDBgNhlxvOUhwZY00d0jB6LpRaJ/WNuoSzljPSJL5s8hKR581GLx qSdt19aC5VO80iHFCpoBrHuVtTv3FNRTwgCl7g2o5faXFS55PvlqtZph8SsymVn/v4Nc HgeJ1Ka2dkk2ofmO06y5Q9bFQdsz4CqQqTzm2ORrX9L+o3qhWYMsu0oeFCygqoekVx7S YLfH2S8E5cidtbTkdMBiv16fTqAR3m+/mqVbKDvj9rhiiLSJSlgC77XKGmQz+uJ9Jm5H 6+7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BpxofZvaVEhQmECSv26XKE0FKE17L5sKd5/ebBQFuzM=; b=z0Ha8GVoRFaf+OPB33pppjG6PxTwxxJJNUC/KglDAfMYNcrfK3QzApIdS/a/zVzpzy xv7mM79IcCHdkTET+gJBB2z1wkbLdoJKoYp8oNL5mP7hF4E6+VLjsI3z91apA4oB1DTB zYk+Md6Xb1ZydoCIsQe2UWTsxilDqF2jzKdHqpMG1+YhMeL242WSWF27UGtKUVdFeDTi rgiUCMyk5/MMcMyaOP+myw3F/VClFBe79pYLwrK8pghnDx7j5EBv90Pfcg0DTONoSEcx cMA8K0TPZkdNExWvG/XqOHry/NR2fqNXd9AMtVajlv8UYjcLo2BqQzNBlSm2aJQd3l5t glKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@flawful.org header.s=mail header.b=X1HQvE3V; 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 g13si13598989ejw.573.2020.09.17.01.07.48; Thu, 17 Sep 2020 01:08:11 -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 (test mode) header.i=@flawful.org header.s=mail header.b=X1HQvE3V; 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 S1726440AbgIQIGj (ORCPT + 99 others); Thu, 17 Sep 2020 04:06:39 -0400 Received: from ste-pvt-msa2.bahnhof.se ([213.80.101.71]:21171 "EHLO ste-pvt-msa2.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbgIQIEa (ORCPT ); Thu, 17 Sep 2020 04:04:30 -0400 Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id EE8213F762; Thu, 17 Sep 2020 09:56:45 +0200 (CEST) Authentication-Results: ste-pvt-msa2.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=flawful.org header.i=@flawful.org header.b=X1HQvE3V; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.1 X-Spam-Level: X-Spam-Status: No, score=-2.1 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NO_RELAYS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Authentication-Results: ste-ftg-msa2.bahnhof.se (amavisd-new); dkim=pass (1024-bit key) header.d=flawful.org Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z_8LVB7HjWHy; Thu, 17 Sep 2020 09:56:45 +0200 (CEST) Received: by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id A8E7C3F72C; Thu, 17 Sep 2020 09:56:44 +0200 (CEST) Received: by flawful.org (Postfix, from userid 1001) id D114D248; Thu, 17 Sep 2020 09:56:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flawful.org; s=mail; t=1600329407; bh=BpxofZvaVEhQmECSv26XKE0FKE17L5sKd5/ebBQFuzM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X1HQvE3VaovOGFCL5T08OfkjhbbLhyDHFmBxxP9vVJMMwXcKZyhkDswjyc0Cjq1ly poj56wrWsv/rzB5uRPIZVIfV4IvCsb9dM7OSMTva9mO+8EgrcUz7WWQSWh5j6+eOUt 70vucYJriq7O+MdkuKQVAUc6o67vGdHq+WHc99eY= Date: Thu, 17 Sep 2020 09:56:47 +0200 From: Niklas Cassel To: Jens Axboe Cc: Damien Le Moal , Johannes Thumshirn , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Niklas Cassel Subject: Re: [PATCH v3] null_blk: add support for max open/active zone limit for zoned devices Message-ID: <20200917075647.GA20845@flawful.org> References: <20200828105400.80893-1-niklas.cassel@wdc.com> <20200907081824.GA260080@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200907081824.GA260080@localhost.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 07, 2020 at 08:18:26AM +0000, Niklas Cassel wrote: > On Fri, Aug 28, 2020 at 12:54:00PM +0200, Niklas Cassel wrote: > > Add support for user space to set a max open zone and a max active zone > > limit via configfs. By default, the default values are 0 == no limit. > > > > Call the block layer API functions used for exposing the configured > > limits to sysfs. > > > > Add accounting in null_blk_zoned so that these new limits are respected. > > Performing an operation that would exceed these limits results in a > > standard I/O error. > > > > A max open zone limit exists in the ZBC standard. > > While null_blk_zoned is used to test the Zoned Block Device model in > > Linux, when it comes to differences between ZBC and ZNS, null_blk_zoned > > mostly follows ZBC. > > > > Therefore, implement the manage open zone resources function from ZBC, > > but additionally add support for max active zones. > > This enables user space not only to test against a device with an open > > zone limit, but also to test against a device with an active zone limit. > > > > Signed-off-by: Niklas Cassel > > Reviewed-by: Damien Le Moal > > --- > > Changes since v2: > > -Picked up Damien's Reviewed-by tag. > > -Fixed a typo in the commit message. > > -Renamed null_manage_zone_resources() to null_has_zone_resources(). > > > > drivers/block/null_blk.h | 5 + > > drivers/block/null_blk_main.c | 16 +- > > drivers/block/null_blk_zoned.c | 319 +++++++++++++++++++++++++++------ > > 3 files changed, 282 insertions(+), 58 deletions(-) > > Hello Jens, > > A gentle ping on this. > > As far as I can tell, there are no outstanding review comments. Hello Jens, Pinging you from another address, in case my corporate email is getting stuck in your spam filter. Kind regards, Niklas