Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2162852ybt; Fri, 3 Jul 2020 02:24:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3w9JrscnkdRzKDVF7RaEJBwsTjNoy0xj/fLz/6US5UUlShzOJ7PFxBxrw0v+/n1yfK1i0 X-Received: by 2002:a17:907:1190:: with SMTP id uz16mr30986557ejb.385.1593768284884; Fri, 03 Jul 2020 02:24:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593768284; cv=pass; d=google.com; s=arc-20160816; b=CfA985lVua2wF7oP5HlxXQeY7zoBv6jFF8HiEevQp0+6zlmNTijBZr5LbqhpLYkeIX 6/xi5cEhsPpg9nNpZ85ksGA/Q1mMCHwn7Vmh6g401ETnerQC0GoJqhkAvs9pOUIdPwTT PRX16Hyg5kYaz5rCqt97KjYU4HdgQAbtPqYFYCiU3DQHESu0Cn1TMC5PK6XGT7RbPKud Dwr3Iq0O9IG1zUnxQ0PEKrdWhvuumEz8oVMalPcl2yAzr7zetAzOj1nr74AhEtLQIWGB +u0AHy8OorygTM9sWJ/Xn8Pd4/qrD4DzgU1uJOvKny3Z3iih6XzVhSm1lA/mPajWaTjU DYTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:wdcipoutbound:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature:ironport-sdr:dkim-signature; bh=wJ1qNHUOhykYDN293J5yXrC80m7swQRsB9T8yIfPCGQ=; b=ZCmz670gDtUxKDbg/Tqm9srRleTiUH6MIYBcK58K27IR9GAk3VZ6huUQbrJQ6cgNxy lWlw80j/oO4aZIt/RtrbFmXg13l8vGvEGaxnumDqJlkMVz1/km2ywxbp0vPY4Bz38JGE 5ZWKn4zYP25XOkReDVvXX+xhheggFgRCnFpQeLKfGvODy/xYmqDMan3Onb80NhC5kGxE NK1GSIIoDuk9xIx61q8vO0bgU7UXHtYZbqqCUrgQ4uSDjncgSoMH3M/y3erFspOq630D 9ASoKqa0fCghiZqORN6dFNLXb74rjX+7PKyJ4kOoygVQXEKET+iR6cmD5jGFUmdY0s/x zRKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=MCK1vOn6; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=taKPPMfG; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si8251216edl.117.2020.07.03.02.24.22; Fri, 03 Jul 2020 02:24:44 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=MCK1vOn6; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=taKPPMfG; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726352AbgGCJYD (ORCPT + 99 others); Fri, 3 Jul 2020 05:24:03 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:45979 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbgGCJYC (ORCPT ); Fri, 3 Jul 2020 05:24:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1593768241; x=1625304241; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=5RRDDc553eO+hW1ui0XqMbC2EZuqrcJelHLE3D27X6c=; b=MCK1vOn6jzAlxR1tmE8J03zAYbjUDTDG5FmfCOkDpM5dpA8iwwyzlLxm 9lMqVzcgVmoNDKw/u6PQp6w8DZZccgZRN1MoY90h/3A4dmLbc6n+u6B/D K0mxXyoneoz2GKXJzhDAYpoNxl9kE4vqpzd/QK4WeSp6pRpc+bgfFe7hO NYdXMTf/DZuA4YABpAuSpFKyvCp1mp+D/qgoNKCOqQRrLqw9jask2QnKr UQiUWLI3dJLTovuhiDiOP467U2bgIspXYWthgkRXYnd7At1R053Cmeu5a X31kqoRnRxxlpktYEmuXUfe5b6vAWIkfSQpXDex4cBnprRretP660+7D3 w==; IronPort-SDR: tjQnKMQ8wdEWGrFN/sgqWcTqi8xnS/yevtDBUBT8CyrWk/Q0kqJ2Te4+dBB+mvD+0pu/kk9zGL m2LvYk5WfH933cpo4f2sWg+IL0bH7pPK2hNWfF8cKTuxPpcXNPvkOhedrsRo7LKiKx1yg1H0nv CaYm/9r5IfL35ji0IhASmKPiLt+P9ThKFotfTuYVu6lsqvlcjXhXDc98L3aRHqHIayGqJc2c06 ckHOb1UYD13HID3U9dZlW/ybR5yr6fxPWsNreE69w1VaBkky6CPQaH9owYbPcuZfP+YIvavN8j dgw= X-IronPort-AV: E=Sophos;i="5.75,307,1589212800"; d="scan'208";a="142911590" Received: from mail-bn7nam10lp2105.outbound.protection.outlook.com (HELO NAM10-BN7-obe.outbound.protection.outlook.com) ([104.47.70.105]) by ob1.hgst.iphmx.com with ESMTP; 03 Jul 2020 17:23:59 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EnmTh6QpEkOAbsDVT+Rdv8cK25fEABGAqPuxcUpxLD0PbAviAO87s8fGpw2vsrJ9f1D5u1x+g6jKCFP8E8iE8r6IgqZhm1tPd7Lu7NRwrjS1IJe8KvBuSxnRv2HVWGl7nJd0U4UTgcXpj0zH/ddRRWNhO1ttQQ0MmF8rMJQHyFpv4T2Gzm8w1miKYpyg74zr0fqFc2pFE1U2vFrGUpl0IEvztVw9294EKuifxJCQsCMe41qENH7OYkAUQ/UnBl1Xizblu+QErO43pEbgIY52fsu4cqJh+P6ou6BhMtMf/Tl5hvsV/iO7a/Gv2/WZkPBSPe9kqPw0f66P3s75hziscg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wJ1qNHUOhykYDN293J5yXrC80m7swQRsB9T8yIfPCGQ=; b=hLWGscA9L1UoKrH3H1ltLbdQHitQ2e0ruFTV+XpJ0TaAUTO8urJVLijJBKl2eMiyw8fIXPnb75AdxXPhFtEl3LZzJjIW7Ai882ArHbjSf8ZnDbH5bpnHDri/jv5ExrO/jZdmW9wQ3UrFuHh4XPJtdWz0uo91VPAqtZFWF211tRmu+cM+bakhwd/OLxNzA3ZhVVjLkIk0i13/teXTsSVGey5bSeJBE4UwRFhisL43dMqPbg1NQXnJXdbQqV7BPO4uDSraP231ggwhtjFjdTtuONmYeOSB2gecrAh/GnX/0mwQl4YmJO71zB+41zTVX7lAXkfrYAeP756qEIKGJakb1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wJ1qNHUOhykYDN293J5yXrC80m7swQRsB9T8yIfPCGQ=; b=taKPPMfGJ/2bZlpPmbT8gTebPDeFIPa860KnlnpL8GKi8G04IUJO/+XiBMiHIiR6aqvspYWNRtF+Wzq+yiKpGKU47dMViCyra+x02MdubT1NECj8bxllHS+tlOZD3E0DzBkreSHO6dfeH8P0eZwvRFiyVXK9620zWWzSo6NpRG0= Received: from BYAPR04MB5112.namprd04.prod.outlook.com (2603:10b6:a03:45::10) by BYAPR04MB3829.namprd04.prod.outlook.com (2603:10b6:a02:ab::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.23; Fri, 3 Jul 2020 09:23:56 +0000 Received: from BYAPR04MB5112.namprd04.prod.outlook.com ([fe80::a442:4836:baba:c84b]) by BYAPR04MB5112.namprd04.prod.outlook.com ([fe80::a442:4836:baba:c84b%6]) with mapi id 15.20.3153.028; Fri, 3 Jul 2020 09:23:55 +0000 From: Niklas Cassel To: Johannes Thumshirn CC: Jonathan Corbet , Jens Axboe , Keith Busch , Christoph Hellwig , Sagi Grimberg , "James E.J. Bottomley" , "Martin K. Petersen" , =?iso-8859-1?Q?Javier_Gonz=E1lez?= , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "linux-scsi@vger.kernel.org" Subject: Re: [PATCH v2 1/2] block: add max_open_zones to blk-sysfs Thread-Topic: [PATCH v2 1/2] block: add max_open_zones to blk-sysfs Thread-Index: AQHWUJ1jh+E7Ih03MkW/NOTP37wCxaj1lhuA Date: Fri, 3 Jul 2020 09:23:55 +0000 Message-ID: <20200703092353.GA33841@localhost.localdomain> References: <20200702181922.24190-1-niklas.cassel@wdc.com> <20200702181922.24190-2-niklas.cassel@wdc.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: wdc.com; dkim=none (message not signed) header.d=none;wdc.com; dmarc=none action=none header.from=wdc.com; x-originating-ip: [85.224.200.150] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b3e9fd44-0c0f-435b-bf35-08d81f32cf3b x-ms-traffictypediagnostic: BYAPR04MB3829: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 045315E1EE x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bFjqWROSy2D7WmhgxniYnkzie7+UipmD2JdwtMXzdbE8jgX6IbrU1zoGUafCO1UbjFN9t4mUcasnzm1m3wHzjVOvLts7fH01asizl8ib/MLWPDa/X/E/SEYr/4UlPY5eAQ757APu5bMVnjVEyRJG4KnrZ821WStURlcg8pB5rgqy5KiFA2KgBqhBQis/UUQ7vPPtahe/M3htZs0hu1DWsfKbXZZgo6QZ128aHK9fMoa13t8xJoyO3ASx2jBah7tRpP3oErx/vSowNSTKKcGXO3WDxkkeKSRIXA40hhuUe7/xEK+URBTiMoI9U2yA0mRsKYH4eVUOU04CKF6CJKcMkg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR04MB5112.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(366004)(376002)(396003)(39860400002)(136003)(54906003)(186003)(316002)(8676002)(71200400001)(2906002)(1076003)(6486002)(478600001)(9686003)(66556008)(66476007)(66946007)(64756008)(66446008)(6512007)(76116006)(33656002)(91956017)(8936002)(5660300002)(4326008)(6506007)(6636002)(26005)(6862004)(53546011)(86362001)(83380400001)(7416002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: 32H4xPJ3L2YlZh9qgtgerAfts/5hwAhNUagsJ+aXnY5dielELAh5MoQCKvyEcf9guIPA++3H7XGJESiJpulk1klPoUZ3xaYQDzs21OOtzdRFjDFt95De70nQYDh47Qf1gRVEdqXsEWOx6D672D+Spv8l8j+I8Nvgtk3/CPjBrq5QTl6RZwQ2WhaItGZjy39qDk4u/7G9AvK4ipThAQ6Ax6DwXw7jE47kA08S3M3xAV9DttbQPh0i9micEIZAkkROaoUmFfBOxB13yIvynOCjm2aSj0S+Fir5AugBM6ghfagYZOUB9Vfj//FDFrWG2kmvoqYVAbFMpwuCrO6HknJWtj5essLkQbDXULkZBeWo8FEjAiUX3GGHWF6TrzdfegdI/5NTR79yXliJOkGtY8TYK+9Azme9Ke4q4KSrioUCsm+NczQYxnNLplXgTTzMkWXfwYNj4TFl9x9Atr+BJ/Ikas+A7+c8j7FSYHqx53yQzG4D1vhpWUljVb1SIs1wu0dz Content-Type: text/plain; charset="iso-8859-1" Content-ID: <39B52203871A9645AF607E0FAD048CBA@namprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR04MB5112.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3e9fd44-0c0f-435b-bf35-08d81f32cf3b X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2020 09:23:55.6941 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 82BdjeNZOMJXtUTaeev0lDrmyaREjwsr5Cd324KrWLuVMPIx+BVKzUJeDeXamL3oe5mpMXDOs7QM9fpD2I1bxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB3829 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 03, 2020 at 08:22:45AM +0000, Johannes Thumshirn wrote: > On 02/07/2020 20:20, Niklas Cassel wrote: > > Documentation/block/queue-sysfs.rst | 7 +++++++ > > block/blk-sysfs.c | 15 +++++++++++++++ > > drivers/nvme/host/zns.c | 1 + > > drivers/scsi/sd_zbc.c | 4 ++++ > > include/linux/blkdev.h | 16 ++++++++++++++++ > > 5 files changed, 43 insertions(+) >=20 > Sorry I haven't noticed before, but you forgot null_blk. Hello Johannes, Actually, I haven't forgotten about null_blk :) The problem with null_blk is that, compared to these simple patches that simply exposes the Max Open Zones/Max Active Zones, null_blk additionally has to keep track of all the zone accounting, and give an error if any of these limits are exceeded. null_blk right now follows neither the ZBC nor the ZNS specification (even though it is almost compliant with ZBC). However, since null_blk is really great to test with, we want it to support Max Active Zones, even if that concept does not exist in the ZBC standard. To add to the problem, open() does not work exactly the same in ZBC and ZNS. In ZBC, the device always tries to close an implicit zone to make room for an explicit zone. In ZNS, a controller that doesn't do this is fully compliant with the spec. So now for null_blk, you have things like zones being implicit closed when a new zone is opened. And now we will have an additional limit (Max Active Zones), that we need to consider before we can even try to close a zone. I've spent a couple of days trying to implement this already, and I think that I have a way forward. However, considering that vacations are coming up, and that I have a bunch of other stuff that I need to do before then, I'm not 100% sure that I will be able to finish it in time for the coming merge window. Therefore, I was hoping that we could merge this series as is, and I will send out the null_blk changes when they are ready, which might or might not make it for this merge window. In the meantime, MAR/MOR properties for null_blk will be exposed as 0, which means "no limit". (Which is the case when a zoned block device driver doesn't do an explicit call to blk_queue_max_{open,active}_zones()). Kind regards, Niklas=