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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2D5EC678D4 for ; Thu, 2 Mar 2023 09:03:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbjCBJDE (ORCPT ); Thu, 2 Mar 2023 04:03:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbjCBJDA (ORCPT ); Thu, 2 Mar 2023 04:03:00 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25FFB3C78E for ; Thu, 2 Mar 2023 01:02:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677747734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Tm6wkEvcK5JOinYT3WE5vetqipJsQea+okdLlPIk/fo=; b=gXauSOdSPVUAU2KVyx1eGAtQX0ZzcdENzHUgvWvN3op9vvcyTLDjQT0l/pzXY7gWU9dxPN 18odxmquJqNa2hXslAyyMkIrbsa9SuV2xksMz9PK4cNIsjfjFruZJcrKPGtRZJVVUQNEdL fFO8vzsQKFWS1p1ROzOKiAOSAUZmXNw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-518-DwMHQBfBPS2cTVqN8eUdXg-1; Thu, 02 Mar 2023 04:02:10 -0500 X-MC-Unique: DwMHQBfBPS2cTVqN8eUdXg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 61C93887400; Thu, 2 Mar 2023 09:02:10 +0000 (UTC) Received: from T590 (ovpn-8-26.pek2.redhat.com [10.72.8.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 02621400EA93; Thu, 2 Mar 2023 09:01:58 +0000 (UTC) Date: Thu, 2 Mar 2023 17:01:53 +0800 From: Ming Lei To: Andreas Hindborg Cc: linux-block@vger.kernel.org, Hans Holmberg , Matias Bjorling , Niklas Cassel , kernel test robot , Jens Axboe , open list , Damien Le Moal Subject: Re: [PATCH v2] block: ublk: enable zoned storage support Message-ID: References: <20230224200502.391570-1-nmi@metaspace.dk> <87o7pblhi1.fsf@metaspace.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 02, 2023 at 04:32:21PM +0800, Ming Lei wrote: > On Thu, Mar 02, 2023 at 08:31:07AM +0100, Andreas Hindborg wrote: > > ... > > > > I agree about fetching more zones. However, it is no good to fetch up to > > a max, since the requested zone report may less than max. I was > > Short read should always be supported, so the interface may need to > return how many zones in single command, please refer to nvme_ns_report_zones(). blk_zone is part of uapi, maybe the short read can be figured out by one all-zeroed 'blk_zone'? then no extra uapi data is needed for reporting zones. thanks, Ming