Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3288745pxa; Tue, 18 Aug 2020 11:12:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCNGq1AJGEfvgCMNISiecPhaX+MI0J3HQBXYWePGbaT5rdgXCnSjS6SeZp4WPTcOCqe5n6 X-Received: by 2002:aa7:d70a:: with SMTP id t10mr20674195edq.68.1597774371434; Tue, 18 Aug 2020 11:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597774371; cv=none; d=google.com; s=arc-20160816; b=GRHqjNxURgi/RefAAzkWUBqk2MIMdGlLdB9bWePCC7jJzimQoN2C2HWFJvaMM1sHTQ EHyP4VqGl204OWmpzmnrl/5PwwZjC6pv7uVF/eX37moDhA6JaOCYIRrSZpX6NcWk9Rnm acri+Q0CgtNIO/9mDc/d3ykpyGaTOE43HgzpBR6KxMC9/9/gv1afrwVJf3OFNfqpp2tO 0y54sMlEG7UkGVwu6HaO5vzHwDgzxJoJ4TnOsAXxEPLyr5/4yFTAiwvzuSvh4raPP0qL UA5wzKoJ8bH67mKsflM0jtfYzzrM9R2YJn449ClKEgpvrVRRZGp63SEgZ6k8Cghxtp0K SRwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UJn2JSokJqI3bZ4orYuEJrjW3L7HkGjOPI8uUsExMI0=; b=K0Q4N8+jcjs9yfSAPTrz1xRXvKZz9yFtP9HA2UEI42/RUBMDCRyrkVTl2GOPDP5KNR Vm3pjtyhhFu7KJLxrGpxjFAL0qLIHjCMfWS8/VS1uCbuZvPFh57KVeEWOZD5rmc2SxzT Y2vn6+z063umSIV1SMMFkIw3T1b6Lcvw7Ys4Pcz2tIj4vrVL/91WTickKU+/j9IHaAZM mhNpNGfoBZBL0eo0gCX2rKOh9Jo8FmKnz5/cTntBVuO7/TnWl3jkCpDoHa5ZYIM2LIfR 390GrXgPO0cA7SNz5ZAk6VsfIqCzDj/aI3owT+bQIypl63VOleow5z8b0yWD1PaaGzIR EEjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=MqABaEdd; 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 h14si14106870eja.174.2020.08.18.11.12.27; Tue, 18 Aug 2020 11:12:51 -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; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=MqABaEdd; 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 S1726675AbgHRSL2 (ORCPT + 99 others); Tue, 18 Aug 2020 14:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbgHRSL1 (ORCPT ); Tue, 18 Aug 2020 14:11:27 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40D9EC061389 for ; Tue, 18 Aug 2020 11:11:27 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id ba10so16001251edb.3 for ; Tue, 18 Aug 2020 11:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javigon-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=UJn2JSokJqI3bZ4orYuEJrjW3L7HkGjOPI8uUsExMI0=; b=MqABaEddV5U7jNhWTNamW1+A8wcSXlLpQCJNnUuoQKGjYyrWrzW8LTsHUFA7RT+bSH DF7X8MWOtpMq7uXTQw04MxtDSMVh1SxRfo0KdwfjvY2gt6YobioaGJ2neqr7IAI6SqGQ NTNcD8L6vHWV7uEyH7kTiXBK7wBnMD+tvi2cPupLPWRA+8QO0DtZ0LiZGfjG7cHwNBRN a/sT69GmrMRL2uecX2mSNBp/JYG8QCzg6mRIAwHn7xF+k1E7BhtgZhcKGE8gc9IuzMAy 129vfn8fxai1e8/i6u0mxY9iNo2O+EwQrGXqqdpDOQzHVFxMkdBE2NMRO2kUS1Sl78jY aDzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=UJn2JSokJqI3bZ4orYuEJrjW3L7HkGjOPI8uUsExMI0=; b=AhgFEB8VdYUKYfdLbDH83VGSrbxQkrGpy9q/OxICDp7Qez9mdvv6TqzT2TTUScUxmh N5qpruryUsvGJUQvGYNrh1Ig87NoNGeVKyJ1xMr9ZTSCK2nLlQjjslKLruXoj1V99mpm Y+Ju3VkuVN1QLsWckk1lAIW1kMVINBUYY/oHJ/8AscNzEqQNS4kv/JnuuqJSo3QB0Ly4 buOUan5q0Iol54GTrO0iFVBilplFHzwc2fIRRIrMc0Pqsi9+gM21EQq53tQ0XiV8CRuo j+eHRQQ4KgWZt2LbvVKd0HxYX1AF2YRq3VrFYNXZw7Ohxd/WHVgqQMNKab/funsc6GuI c//A== X-Gm-Message-State: AOAM533IerRXeG/Xw7XLjWHKxXhClWASi7zAMMHJwXN1mgCG5tlp5zxR OqAY8G4MXZhzmpZMj30vcw4AzOpps95pJsFA X-Received: by 2002:aa7:c358:: with SMTP id j24mr20163939edr.377.1597774285947; Tue, 18 Aug 2020 11:11:25 -0700 (PDT) Received: from localhost (5.186.127.235.cgn.fibianet.dk. [5.186.127.235]) by smtp.gmail.com with ESMTPSA id v23sm11594092ejh.84.2020.08.18.11.11.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2020 11:11:24 -0700 (PDT) Date: Tue, 18 Aug 2020 20:11:24 +0200 From: Javier Gonzalez To: Matias =?utf-8?B?QmrDuHJsaW5n?= Cc: Christoph Hellwig , axboe@kernel.dk, Damien.LeMoal@wdc.com, SelvaKumar S , sagi@grimberg.me, Kanchan Joshi , johannes.thumshirn@wdc.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, kbusch@kernel.org, Nitesh Shetty Subject: Re: [PATCH 2/2] nvme: add emulation for zone-append Message-ID: <20200818181124.2ys5urtkodpkamsr@MacBook-Pro.localdomain> References: <20200818052936.10995-1-joshi.k@samsung.com> <20200818052936.10995-3-joshi.k@samsung.com> <20200818071249.GB2544@lst.de> <20200818095033.h6ybdwiq3ljagl5a@mpHalley.local> <4ae89443-d8ae-4efb-581e-b635c21b27de@lightnvm.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4ae89443-d8ae-4efb-581e-b635c21b27de@lightnvm.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18.08.2020 12:51, Matias Bjørling wrote: >On 18/08/2020 11.50, Javier Gonzalez wrote: >>On 18.08.2020 09:12, 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. >> >>I understand that the NVMe process was agitated and that the current ZNS >>implementation in Linux relies in append support from the device >>perspective. However, the current TP does allow for not implementing >>append, and a number of customers are requiring the use of normal >>writes, which we want to support. > >There is a lot of things that is specified in NVMe, but not >implemented in the Linux kernel. That your company is not able to >efficiently implement the Zone Append command (this is the only reason >I can think of that make you and your company cause such a fuss), This comment is out of place and I will choose to ignore it. >shouldn't mean that everyone else has to suffer. This is not a quirk, nor a software work-around, This is a design decision affecting the storage stack of several OEMs. As such, I would like to find a way to implement this functionality. Last time we discussed this in the mailing list, you among others pointed to append emulation as the best way to enable this path and here we are. Can you explained what changed? > >In any case, SPDK offers adequate support and can be used today. We take the SPDK discussion in the appropriate mailing lists and slack channels.