Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2892331pxa; Tue, 18 Aug 2020 00:15:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqCp+mfw/2HOTkaJNLw+9mkU1P7qNQWaXrXhP0oAEPcB9ircf1oyZh7Z6hykw0vfOUw1fR X-Received: by 2002:a17:906:2506:: with SMTP id i6mr18224666ejb.72.1597734952061; Tue, 18 Aug 2020 00:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597734952; cv=none; d=google.com; s=arc-20160816; b=HUffUTQy3vqTV0aF7M9P5UubReiLgSfe9ecPIss1jgeRJCaUe3ZjgXLEfNqgKOiNVY X6ImHvSSa7IQggicwJZq3xRZFx4gMWPVXsA4Kb1uk1YJ75AdJjoTl00rMkoYnPO5rfcr +uVhSyZ1gEjpvXy7TWoc1h7CBQLGuX66VS8iXsQDiw3MoD7eJ3u0cF4Mav5Ex44hNlTW X8rsObLZJjZ01XNPxbP5juqaM5Yw/W9CJd1C/qLK6H0u6VRNNo2c5hUvHK9Y8e1ZSxCt j7Zu236zPLnr1aYthCBYMB/fuVpX5Bof9a5nZeAsc1wW4U7jB9xgKqOE+VfMJxEEoXhP pmzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CurAesl5sewHrxfZDMkOJmRbuofYwNT+i65MWWDbG4c=; b=QIbiHJ8HL/plGFdwBfAjhVa8TQhDGAwN5/5hlbENjeGgf0Pos9RIExbf6TOy9oN+A/ MmnJ305j9+fqoLVtJ9Nd9mpQfp4HMsYgY6AY0Aw1f9Lq+GxQ57+SJcILtGJRWilRXNys UxT28owLt1/iNJk3P6cj1UOTQo1UTFw89x6PDOkF89tx1akpCcUNbm9cKkNOwp4ynIwe qYqecP5LRv4XudfVcujRzSUhuAW1+LnaQZUmtjzf6aXWmnmrL5vU8/eRE0hNGUy/lo4d HzulUeNDk8Ukt4BnDeuN0wdXLU3vtug5TyNSxRLaQtt1bRx6luUOpNPTCJokWYhGFFEu 1FdQ== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o12si12128520edr.362.2020.08.18.00.15.28; Tue, 18 Aug 2020 00:15:52 -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; 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 S1726466AbgHRHMx (ORCPT + 99 others); Tue, 18 Aug 2020 03:12:53 -0400 Received: from verein.lst.de ([213.95.11.211]:60482 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726228AbgHRHMv (ORCPT ); Tue, 18 Aug 2020 03:12:51 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A829068AFE; Tue, 18 Aug 2020 09:12:49 +0200 (CEST) Date: Tue, 18 Aug 2020 09:12:49 +0200 From: Christoph Hellwig To: Kanchan Joshi Cc: kbusch@kernel.org, hch@lst.de, Damien.LeMoal@wdc.com, axboe@kernel.dk, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, johannes.thumshirn@wdc.com, Nitesh Shetty , SelvaKumar S , Javier Gonzalez Subject: Re: [PATCH 2/2] nvme: add emulation for zone-append Message-ID: <20200818071249.GB2544@lst.de> References: <20200818052936.10995-1-joshi.k@samsung.com> <20200818052936.10995-3-joshi.k@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200818052936.10995-3-joshi.k@samsung.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 18, 2020 at 10:59:36AM +0530, Kanchan Joshi wrote: > If drive does not support zone-append natively, enable emulation using > regular write. > Make emulated zone-append cmd write-lock the zone, preventing > concurrent append/write on the same zone. I really don't think we should add this. ZNS and the Linux support were all designed with Zone Append in mind, and then your company did the nastiest possible move violating the normal NVMe procedures to make it optional. But that doesn't change the fact the Linux should keep requiring it, especially with the amount of code added here and how it hooks in the fast path.