Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp178200iob; Mon, 2 May 2022 16:22:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9vNX1PbRUBLYD+sCg2X4dhEcu/vjGrsElouYVMtD2PBPhQw1i/A7aTOMd5/D7U4ymPCz9 X-Received: by 2002:a62:3848:0:b0:50d:376e:57ed with SMTP id f69-20020a623848000000b0050d376e57edmr13302533pfa.71.1651533776217; Mon, 02 May 2022 16:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651533776; cv=none; d=google.com; s=arc-20160816; b=L30C2cNoUeWcCST19UrmkfYy1mnQu2Bpzv5kAfaAGRnn1ieOnm+zlidC44wbNQJsWv vkQodU84jpgnnCJqF1wlY4tExA6Xi6F+hY/M3dZNEkugxjGg6dJzSWVZftouvmFXTpwV P/8b17sU0kcoOv7rnoFIqinvLwfe54Lu0pfoF8Dgu1yQuxsh9DkPPVghXfC5i9ts8XQx Y7D67gDKUXYviUFy2iNlIpk1O/brN0zxIIvBsDsVpv7rp19w2dPEvyxmvNy+8j2D2LJu qvqeiT4aeFN4/XGxx7yC6BMBboYN/sVu+230mG5c0yRf+gvweKPkwJ+5Ys2TpFHS5n2L kfNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=f84+vDOkYdKvpAS/+2t0fMk86T27MpLA7gE2VV6cuuw=; b=XIAS4MHTIUOxxvcgRW7tghoqmu0mcNOSPrYN0rLZ0NNuGiPP4zhxByiji1g3J2hT9v 92JMzo+79CATQLAbyMoxjKl1VGL/WSHrld0qWAsFSygSPKsJDDvnctW76O5fk0ma5L4a IfuceZ9UT4staESYwoDvF820QaXRQXL6yfpLMlVJ9LMW0NsT0MWh9ZuWaq9V8g08z2XH grD6h+qBNfeqjlgpPBUM8wixjVq6181C+9gCuXBaZKPt8uUJ4KLm4mRv8FrQ9FUSvqm+ CQnfiOpzJ+DFvxnzQTleU0ZJVgyqZTv7cUPtfh6xgUJkSrAW+YjcM5+GxC0CGrF4Bbqk mncA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=m38iFLdv; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=AIzuKRzw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o3-20020a17090ab88300b001dc3db49225si539432pjr.114.2022.05.02.16.22.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:22:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=m38iFLdv; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=AIzuKRzw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7EB0C1D0E1; Mon, 2 May 2022 16:22:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385131AbiEBM6h (ORCPT + 99 others); Mon, 2 May 2022 08:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385134AbiEBM6c (ORCPT ); Mon, 2 May 2022 08:58:32 -0400 Received: from esa3.hgst.iphmx.com (esa3.hgst.iphmx.com [216.71.153.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42129140F8 for ; Mon, 2 May 2022 05:55:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1651496100; x=1683032100; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=JUhkvda0JEwXdsLju2Qm64dHW4RVR82QZ/jIjIRhXSc=; b=m38iFLdvrb3hfNw3N6/IcNJnLVs5lcfAAYex4pat4RJP+DOqf5aIkCGO amha9KtQp8z5EPvXCu+/d3S0TzBBEL5pZ1YJyLkGb+deORVbe74fC/9O2 U3s6QxzzmRopz50EUd/Zy8T2BZ/hH+yBlcDP/1z0sH5hqh+4KHtqJ+SMg KuqCLgB++pZKoZ34SVxeKXA0PVSBDA7oIYyuHvzhQ4fbUoWs8pM1XgTOd niJ7jSggYZp4qZ8E+4F2YmiaSwWOSrUqMrbq+iQg+STxBKkouwgIUJn+R tE2dEeLX9jf5KcACuSIZIiUQdv32LtNVOMWyo+5pEAyVhwfR1cJ/ONkY0 Q==; X-IronPort-AV: E=Sophos;i="5.91,192,1647273600"; d="scan'208";a="204205551" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 02 May 2022 20:54:58 +0800 IronPort-SDR: FWtLf8tpQlDCzmhWNd/XDne8Dh0QwbJAA7NH31rdXm1G2luaFt/xNsI/W0OU03M0rTwNM+WKR6 qFlY9dTsOnx7rmmip7zYeuQb3U4tKTV2YaPx+v/uXKjdzvkIGk4hUA8W5SxjWHzZChQeBPgB9t Qu+ovdzDq8Bv2acraauD6Xh8lV6/TlhHf3XfjGerezWbjYYLrZDSEcVPiNNmf9ME+Kh/op0GKV qGkmMGY/F3UhooWAZ6r2a9nV9D5ktdCWkFE7wQa1RBZX5/NY7SGW9vzeM5KnLM3KHHLtXppItf 03Jo5+YU+8t02u2AoXyjAkct Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 May 2022 05:25:02 -0700 IronPort-SDR: eD6w13QLoJ1l0NV8sSLlxP4LYU67EWSCNo+oNmUqVTPIKBkL5D9V9Llx1w+6KsuWs7T009G9SC oedyoiQo/rBwoDEWxxoVMCWR1TjTSk7SUEUiUSB2pnx3d3BHQIHRwFN27xHW7OHOvzE8eeanjw wFQ57Sn9XSmilwToXEVxYDD5n+tliAoiJDheDsDEYonFm6k2VsitAh1OOAYCy1ZmcPokweG8TC 14yH9fAge4aaK2wkTiwzxMm3mLLg86mF14aQc9yuSkworcNvE8siT/pHhoN+U3W6oUesCdZ8X/ cdk= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 May 2022 05:54:59 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4KsNNL1BQZz1SHwl for ; Mon, 2 May 2022 05:54:58 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1651496097; x=1654088098; bh=JUhkvda0JEwXdsLju2Qm64dHW4RVR82QZ/j IjIRhXSc=; b=AIzuKRzwZQVGatHl1N9EZyzvTE342Ex2Xsdk8dBzDQ7YlT68E2V jV+TRKCrZd4GXYnfbCwGUwR95UrtQKr2UfhYl8T65OJz4IyX5umhChjtkVGNhb78 fifJnXe4HbDMbtWoKXkttpTB62VrmW8Nx3y8woeYDf4X2F5K5ujyv36d1+FWxt7o sb9+KnDWiv764wZ2QpUYFR4rpzUKq6nGrx3NzsjOE6RgwxGpfrSzxy7XJaamCLU4 cKra1DSpG8GFVPnxcIuK8yBXF6OG4IuYh9XditWd0i9eLs+PM4Hw+wMdbnKYLvAZ DOChJiv+tRmTFj4WmOuvf97nM+M1QTprY6Q== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xkjVa2HT6e87 for ; Mon, 2 May 2022 05:54:57 -0700 (PDT) Received: from [10.225.81.200] (hq6rw33.ad.shared [10.225.81.200]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4KsNNJ5Mpmz1Rvlc; Mon, 2 May 2022 05:54:56 -0700 (PDT) Message-ID: <46e95412-9a79-51f8-3d52-caed4875d41f@opensource.wdc.com> Date: Mon, 2 May 2022 21:54:55 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v4 00/10] Add Copy offload support Content-Language: en-US To: Dave Chinner , Nitesh Shetty Cc: 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 References: <20220426101241.30100-1-nj.shetty@samsung.com> <6a85e8c8-d9d1-f192-f10d-09052703c99a@opensource.wdc.com> <20220427124951.GA9558@test-zns> <20220502040951.GC1360180@dread.disaster.area> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20220502040951.GC1360180@dread.disaster.area> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 2022/05/02 13:09, Dave Chinner wrote: > 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 virtua= l 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 =E2=80=93 >>>> >>>> 1. Driver >>>> - NVMe Copy command (single NS), including support in nvme-target (f= or >>>> 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 settl= es down. >=20 > 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... That is a very good idea ! But that will cover only the non-zoned case. F= or copy offload on zoned devices, adding support in null_blk is probably the simp= lest thing to do. >=20 > i.e. I think you're doing this compeltely backwards by trying to > target non-existent hardware first.... >=20 > Cheers, >=20 > Dave. --=20 Damien Le Moal Western Digital Research