Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp350004rwd; Wed, 7 Jun 2023 00:23:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5v7nE77uCNssEMlU3pOEgtP+BKHD2jShyQi86K6YytlPqmp8qRobxqrN8m8q58O0TSbqLq X-Received: by 2002:aa7:88c3:0:b0:64d:5f1d:3d77 with SMTP id k3-20020aa788c3000000b0064d5f1d3d77mr5147331pff.34.1686122590658; Wed, 07 Jun 2023 00:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686122590; cv=none; d=google.com; s=arc-20160816; b=nW8QFy7q8AdtLYjPEspBxVnkhItxlvj/rNjtVM2VSAGWzakcVoA4m3yUVQiBeH2EuX A+wX7YCOmrcPubKpZAbhW5gKTRxsu3QnQ/52LjsrVJiAOAEL8OhFQgjpE5KXST6H3WIC lHfrolvutlyy8hqWNhVDk2QYSi2NuifyNpCpZZc3atMSbIIel5yvvoYWBB0GO2Ny+GMg Im5GAEDha92C6cKmSBJEGW53SNwXyar/LuYnfEnansCx+Kgp7i3uosSrIV45MUG7AMiO 79jL4Plm7Y5NuZnMG9faWl5B0FlIvnrL2w2o4ipth0Anf81mwy3waU5/0q66Ac7zY3vL jKcA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4CbgdtrMRU8SgCC/lj9k+w8TeWMG8R3cL1TBFp6UuqY=; b=CvV4JiJocf8AAw8T1wTQ3vg6TFQwna7FtwAwrwvU2mPabNkLbKgk/1r0MPMGaMIZwx vYGYFGLVYPfPZXemLZL9efyukrRvv3Xw85Ul2PzZs9RmsxSLPk4e4l6sCBiYtmKwvr7C dEAh0tOgRVsyA90sUelKxGfRU7KWFO6AvhGF0jGPiI9uYipaD/Ih72itgKZwAX4OMaOF IRtnaCpCAynMoYkMhuALozFFWzk1S4EH4K9u3GemY6fLdkMvgBTDXWyPv9kyRLkcYh5A OTCVbGzJ0wiSrR3XDb3WzXu2EJhC9s0gYsPU708WrTPtoz948RhbBe0lw5AWiERzJEwb psSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hvjiRjbQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u63-20020a638542000000b005030a59a81dsi8756741pgd.159.2023.06.07.00.22.57; Wed, 07 Jun 2023 00:23:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hvjiRjbQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233597AbjFGHNL (ORCPT + 99 others); Wed, 7 Jun 2023 03:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238681AbjFGHNJ (ORCPT ); Wed, 7 Jun 2023 03:13:09 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C04C11720; Wed, 7 Jun 2023 00:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=4CbgdtrMRU8SgCC/lj9k+w8TeWMG8R3cL1TBFp6UuqY=; b=hvjiRjbQ931WaCH5rTfNFZ43dF 7MB76TsmX5AAZsrITTyNmsY08/KqALkDgqg2ybIdFoPx+0KRcOqaGtnGD4Y4XdVJfjIXZZcxc/n2R CRxH2cDLvRo07ZSmt+1U35fV22n1a0d5zDxD4Z7SjPd02ggrx2ENbFosvjOhkq/LNWw612Ykx7Pay b8+aC4Rmb9lAjJRV7jYB25fCMsCLGRolxDysouwQz39Hjkif3EpTqgD0oud9OF2wNJGV33aSjcb9v XUZhVXcJFLYijKWVedmkYvRDC0/VuhfDmjDiE/4Dtf+7UI4Gy8scv6ROC+Hc6wl3xvZMgPLhQwXCE Z3Qsa4QA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q6nLa-004gCI-2l; Wed, 07 Jun 2023 07:12:46 +0000 Date: Wed, 7 Jun 2023 00:12:46 -0700 From: Christoph Hellwig To: Nitesh Shetty Cc: Christoph Hellwig , Jens Axboe , Jonathan Corbet , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Keith Busch , Christoph Hellwig , Sagi Grimberg , James Smart , Chaitanya Kulkarni , Alexander Viro , Christian Brauner , martin.petersen@oracle.com, linux-scsi@vger.kernel.org, willy@infradead.org, hare@suse.de, djwong@kernel.org, bvanassche@acm.org, ming.lei@redhat.com, dlemoal@kernel.org, nitheshshetty@gmail.com, gost.dev@samsung.com, Kanchan Joshi , Javier =?iso-8859-1?Q?Gonz=E1lez?= , Anuj Gupta , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v12 5/9] nvme: add copy offload support Message-ID: References: <20230605121732.28468-1-nj.shetty@samsung.com> <20230605121732.28468-6-nj.shetty@samsung.com> <20230606113535.rjbhe6eqlyqk4pqq@green245> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606113535.rjbhe6eqlyqk4pqq@green245> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Tue, Jun 06, 2023 at 05:05:35PM +0530, Nitesh Shetty wrote: > Downside will be duplicating checks which are present for read, write in > block layer, device-mapper and zoned devices. > But we can do this, shouldn't be an issue. Yes. Please never overload operations, this is just causing problems everywhere, and that why I split the operations from the flag a few years ago. > The idea behind subsys is to prevent copy across different subsystem. > For example, copy across nvme subsystem and the scsi subsystem. [1] > At present, we don't support inter-namespace(copy across NVMe namespace), > but after community feedback for previous series we left scope for it. Never leave scope for something that isn't actually added. That just creates a giant maintainance nightmare. Cross-device copies are giant nightmare in general, and in the case of NVMe completely unusable as currently done in the working group. Messing up something that is entirely reasonable (local copy) for something like that is a sure way to never get this series in.