Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp695839pxa; Wed, 19 Aug 2020 12:15:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxssnoWVTIM0WUb7FVf4E8+GGXOQUwo2GJCTXq9RFNPL8HpOfYtaVGrImZ8/fp5jV6H0qNs X-Received: by 2002:a50:ec90:: with SMTP id e16mr26899755edr.234.1597864542909; Wed, 19 Aug 2020 12:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597864542; cv=none; d=google.com; s=arc-20160816; b=zQfGZRc1mHwYUSyOeAj8reCcj3wB+b2yopesEXEzbprVZkJuH8OTRTsw60X2pjs+nl 63ZQZIXPLHh6LS602xVx8oGcvr1+z/LGYmCEt3E6AmN+M/5xaZ+Z5hvaqB43x6IJFhck E4GgKYPx2+/LpZyTuS1L0wvaSwOr7cwZjig6hL767jw7qvXlk+d44XWSZeu6+6WQCrc6 FWGFrwdB8Pxm1/0iQ1yKoh/bo2TP8iU2UiT6NPZgBYEi1CtJn8weGwP22OUGhh7+8b+t pONpPocSie+X5bCn4krjx5TySbCOW/S51yd6NBrGpQowqE49GsLCp1zd/cq3avqIkFQ7 oP9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:reply-to:from :subject:message-id:ironport-sdr:ironport-sdr; bh=0IRZFN6W6ZIzwLzs+XtUYFqlBD0A3zgjCH17wjhwtc4=; b=RkUil7qtWRAtGuG4pEyYOSd6KfdyRIFFVzaN6jUXQNDMy8G7i5CgopBMErtIlrN5iN yeNEL+GmboHjg6vhCw7EElyd/Y5cZa4ed7tX3+B7i5dlTu0CdB5qtmfrUM1OINMuQ9wb QNDSZoNetxzDtQKae6PBGo9tRc8+ImQpvHUTCUVWNF25QdJeI5t4N8u8BGq+zZJgy3b+ uvxpcCVTv69oY96omD91is/ynQY2DAL7X+W+UT16qfNXRHJGVZ2QEdwllOaMoR1/F14f k69VbFktQvVfy1ercuLYxl7XEWzYzJ7ilx9eT6DEs3vuoTuFreoNK68nSKYIhYm/baXC e3XA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si15648306ejx.379.2020.08.19.12.15.19; Wed, 19 Aug 2020 12:15:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbgHSTMB (ORCPT + 99 others); Wed, 19 Aug 2020 15:12:01 -0400 Received: from mga12.intel.com ([192.55.52.136]:19300 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbgHSTMA (ORCPT ); Wed, 19 Aug 2020 15:12:00 -0400 IronPort-SDR: PBwhhetZ+lbxj+QM9dts/H5lOiH7xvHUOad1VFfBs5XJ1NX9Ax/Ijy16appWOY4zSIftlAg95r CEPszwQ75qJg== X-IronPort-AV: E=McAfee;i="6000,8403,9718"; a="134705186" X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="134705186" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2020 12:11:59 -0700 IronPort-SDR: OZiP4TSX2CGzEbsrbEbgO/L1SigWcyMus4uNFG7SuZdnuwRJsPsI4raA3IUk/XZm6VABXHYSE6 5evmasYNJRDA== X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="278408392" Received: from dfugate-mobl1.amr.corp.intel.com (HELO dwf-u18040) ([10.212.117.189]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2020 12:11:59 -0700 Message-ID: Subject: Re: [PATCH 2/2] nvme: add emulation for zone-append From: David Fugate Reply-To: david.fugate@linux.intel.com To: Christoph Hellwig , Kanchan Joshi Cc: "kbusch@kernel.org" , "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 Date: Wed, 19 Aug 2020 13:11:58 -0600 In-Reply-To: <20200818071249.GB2544@lst.de> References: <20200818052936.10995-1-joshi.k@samsung.com> <20200818052936.10995-3-joshi.k@samsung.com> <20200818071249.GB2544@lst.de> Organization: Intel Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-08-18 at 07:12 +0000, Christoph Hellwig wrote: > 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. Intel does not support making *optional* NVMe spec features *required* by the NVMe driver. It's forgivable WDC's accepted contribution didn't work with other vendors' devices choosing not to implement the optional Zone Append, but it's not OK to reject contributions remedying this. Provided there's no glaring technical issues, Samsung's contribution should be accepted to maintain both spec compliance as well as vendor neutrality.