Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp189655iob; Mon, 2 May 2022 16:43:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcYphpwxMiSTwc7PFxSxgPw38/2FYwGa390pa7VsDpwQxWKgdzOAqVe+3soPMj/4aH7pZD X-Received: by 2002:a17:903:1210:b0:15e:8373:d4b8 with SMTP id l16-20020a170903121000b0015e8373d4b8mr13953275plh.11.1651534982841; Mon, 02 May 2022 16:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651534982; cv=none; d=google.com; s=arc-20160816; b=h6JvMy5wTM3xYm+HNW0Q0kCbi2Xt9oM8BLFLOrosSEY/I82SMdzADRAeaZb84CSTKY Xw4TZUnWIWv+51YuWhEzqAVlnaiAjeivIIhMDJi3j1PGjViVmILLXawrIolCR+xJXS+L 1wOEceSdGVx2B3RbUNrxH6qHGEQuKpEsv+79eaCVt6kaNIFE/Oi9kTz16SzX6FwA8DAG ExjWUkq+JRuEpWbpEo1TqiQfomR8+OLfef15sQwidd06PJszaNXh/S4LdD2BoBFle2Ny RW+awcoKnYJ8XJ0rDKZCBDuUz12We8utZNBzaVAfD5B7249ucm4Aa4kdQkVrwyFV/36p dnMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0Go0K4uVPMcIRB9KqASU+Q8VWMrGbhmHToe/6r5Q5Jg=; b=q4ID9G7ipvDHbE6xJrSDCy17jkuRxy6Uc+f0qLh/NlfxsZlNhsvY8ve1fSJMbt6y4O lYSAwIobNgG8NSVP7bPiR8oXOFvfutEwCKVmT+qq6xfukhrVlg8fEMwzshGeWBsKt/UD 6uw4+QQMnOCbTGpP7aMDaz3WklWKnPlhQBc6OxulcWM1qvZa9mdAQqRFBR5ECYzH4nIm fVHkF3oz5/jgAZo4vMruDMoabixhJSdI8lfD2HYW6TqHnjw7EFC0yA9DveIXbhxL5FFV mXSC9HXoNMWRZMOJlrWB1tcqtZuALmxCMEfedi9r3b+dErzqWfZJHnzA7K5R3eEvv4AZ cANQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d25-20020a656219000000b003ab244b6bcbsi15173134pgv.654.2022.05.02.16.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:43:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 23AD42E68D; Mon, 2 May 2022 16:42:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357110AbiEBENc (ORCPT + 99 others); Mon, 2 May 2022 00:13:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349366AbiEBEN0 (ORCPT ); Mon, 2 May 2022 00:13:26 -0400 Received: from mail105.syd.optusnet.com.au (mail105.syd.optusnet.com.au [211.29.132.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BFBDB3A6; Sun, 1 May 2022 21:09:57 -0700 (PDT) Received: from dread.disaster.area (pa49-181-2-147.pa.nsw.optusnet.com.au [49.181.2.147]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id 71FEB10E608C; Mon, 2 May 2022 14:09:53 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1nlNNf-006zFQ-FJ; Mon, 02 May 2022 14:09:51 +1000 Date: Mon, 2 May 2022 14:09:51 +1000 From: Dave Chinner To: Nitesh Shetty Cc: Damien Le Moal , linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, dm-devel@redhat.com, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org, nitheshshetty@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 00/10] Add Copy offload support Message-ID: <20220502040951.GC1360180@dread.disaster.area> References: <20220426101241.30100-1-nj.shetty@samsung.com> <6a85e8c8-d9d1-f192-f10d-09052703c99a@opensource.wdc.com> <20220427124951.GA9558@test-zns> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220427124951.GA9558@test-zns> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.4 cv=e9dl9Yl/ c=1 sm=1 tr=0 ts=626f5993 a=ivVLWpVy4j68lT4lJFbQgw==:117 a=ivVLWpVy4j68lT4lJFbQgw==:17 a=IkcTkHD0fZMA:10 a=oZkIemNP1mAA:10 a=7-415B0cAAAA:8 a=ldjz8t_eVu9c6UoTg2wA:9 a=QEXdDO2ut3YA:10 a=biEYGPWJfzWAr4FL6Ov7:22 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 27, 2022 at 06:19:51PM +0530, Nitesh Shetty wrote: > O Wed, Apr 27, 2022 at 11:19:48AM +0900, Damien Le Moal wrote: > > On 4/26/22 19:12, Nitesh Shetty wrote: > > > The patch series covers the points discussed in November 2021 virtual call > > > [LSF/MM/BFP TOPIC] Storage: Copy Offload[0]. > > > We have covered the Initial agreed requirements in this patchset. > > > Patchset borrows Mikulas's token based approach for 2 bdev > > > implementation. > > > > > > Overall series supports – > > > > > > 1. Driver > > > - NVMe Copy command (single NS), including support in nvme-target (for > > > block and file backend) > > > > It would also be nice to have copy offload emulation in null_blk for testing. > > > > We can plan this in next phase of copy support, once this series settles down. Why not just hook the loopback driver up to copy_file_range() so that the backend filesystem can just reflink copy the ranges being passed? That would enable testing on btrfs, XFS and NFSv4.2 hosted image files without needing any special block device setup at all... i.e. I think you're doing this compeltely backwards by trying to target non-existent hardware first.... Cheers, Dave. -- Dave Chinner david@fromorbit.com