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 C8E6DC54EE9 for ; Tue, 20 Sep 2022 11:30:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbiITLaf (ORCPT ); Tue, 20 Sep 2022 07:30:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230190AbiITLa1 (ORCPT ); Tue, 20 Sep 2022 07:30:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2946D1EEEB; Tue, 20 Sep 2022 04:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Ufnh2nMLFWVGqIEbVXFQ5bFlJnUCbH6WOUk2G18r1y8=; b=WOaF0pb2mROTLVZj6oPFh/FEVU Dl8UExUWm8T66UeCdjXNE09c88ke2G80M4GgWN3ICQ41JHgfvY7DeVuOKLU3QrAyedUw6Gkd9c/JZ xzASYsIw47hVIvPfhdZlxwcIpeIfsMs1aoI4pFyhCieMxjdDFlHcIqyn9Bjk119xt+LQQgeVeHgW9 JiG6T7qdN37W/Rc1zdKr3aD/JgQCwyS3Ezmw7EaAupUS/Q+ffG3TkQzgpV6R3eO/Z9WiFAeb8lAeR B67xStuif2T9Mk2ap53GV7HCBlxGa2Dt8whgMwfgbOtYL7aU4wj1hqfjdyVe/wTc8PXEQEnDHPej4 MqMWmAcw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oabSC-003JT4-DQ; Tue, 20 Sep 2022 11:30:16 +0000 Date: Tue, 20 Sep 2022 04:30:16 -0700 From: Christoph Hellwig To: Daniil Lunev Cc: Christoph Hellwig , Sarthak Kukreti , Stefan Hajnoczi , dm-devel@redhat.com, linux-block@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Jens Axboe , "Michael S . Tsirkin" , Jason Wang , Paolo Bonzini , Alasdair Kergon , Mike Snitzer , Theodore Ts'o , Andreas Dilger , Bart Van Assche , Evan Green , Gwendal Grignou Subject: Re: [PATCH RFC 0/8] Introduce provisioning primitives for thinly provisioned storage Message-ID: References: <20220915164826.1396245-1-sarthakkukreti@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Sep 20, 2022 at 08:17:10PM +1000, Daniil Lunev wrote: > to WRITE ZERO command in NVMe, but to WRITE UNAVAILABLE in There is no such thing as WRITE UNAVAILABLE in NVMe. > NVME 2.0 spec, and to UNMAP ANCHORED in SCSI spec. The SCSI anchored LBA state is quite complicated, and in addition to UNMAP you can also create it using WRITE SAME, which is at least partially useful, as it allows for sensible initialization pattern. For the purpose of Linux that woud be 0. That being siad you still haven't actually explained what problem you're even trying to solve.