From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90031C433E0 for ; Tue, 23 Jun 2020 06:15:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 704FA2077D for ; Tue, 23 Jun 2020 06:15:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730619AbgFWGPU (ORCPT ); Tue, 23 Jun 2020 02:15:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:43342 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730515AbgFWGPU (ORCPT ); Tue, 23 Jun 2020 02:15:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2B917AC53; Tue, 23 Jun 2020 06:15:19 +0000 (UTC) Subject: Re: [PATCHv3 1/5] block: add capacity field to zone descriptors To: Keith Busch , linux-nvme@lists.infradead.org, hch@lst.de, sagi@grimberg.me, linux-block@vger.kernel.org, axboe@kernel.dk Cc: =?UTF-8?Q?Matias_Bj=c3=b8rling?= , Chaitanya Kulkarni , =?UTF-8?Q?Javier_Gonz=c3=a1lez?= , Daniel Wagner , Johannes Thumshirn , "Martin K . Petersen" References: <20200622162530.1287650-1-kbusch@kernel.org> <20200622162530.1287650-2-kbusch@kernel.org> From: Hannes Reinecke Message-ID: Date: Tue, 23 Jun 2020 08:15:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200622162530.1287650-2-kbusch@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 6/22/20 6:25 PM, Keith Busch wrote: > From: Matias Bjørling > > In the zoned storage model, the sectors within a zone are typically all > writeable. With the introduction of the Zoned Namespace (ZNS) Command > Set in the NVM Express organization, the model was extended to have a > specific writeable capacity. > > Extend the zone descriptor data structure with a zone capacity field to > indicate to the user how many sectors in a zone are writeable. > > Introduce backward compatibility in the zone report ioctl by extending > the zone report header data structure with a flags field to indicate if > the capacity field is available. > > Reviewed-by: Chaitanya Kulkarni > Reviewed-by: Javier González > Reviewed-by: Daniel Wagner > Reviewed-by: Johannes Thumshirn > Reviewed-by: Martin K. Petersen > Signed-off-by: Matias Bjørling > --- > block/blk-zoned.c | 1 + > drivers/block/null_blk_zoned.c | 2 ++ > drivers/scsi/sd_zbc.c | 1 + > include/uapi/linux/blkzoned.h | 15 +++++++++++++-- > 4 files changed, 17 insertions(+), 2 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer