Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp868101lqh; Fri, 31 May 2024 23:00:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVw8xNWD8OtPND82xKeabnIwNS0yHaBrbj9+VZ6/MNUOY9pFG3vYTML+TEyj5jSAM0ihnXhfBcDehGjCar7J6y6KZjH0o8YsvIHRPXcEg== X-Google-Smtp-Source: AGHT+IFfTi6SleA8yuHhowRJ+sqbRI+C5awz4361Q6oy7+VrTXd/ROAgO6V42kkrDCWXFV56RfQr X-Received: by 2002:a17:902:b941:b0:1f2:f8b7:60cf with SMTP id d9443c01a7336-1f61bfa5c34mr75683725ad.27.1717221603824; Fri, 31 May 2024 23:00:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717221603; cv=pass; d=google.com; s=arc-20160816; b=b3rwbvcD/CBchwTD7rFhyD/2pkfJv19X25NlYzoRgZft2vuwHQTGafV6/EeZEhNxlF SK8YERW5cVgYZo39Ld+jwPAFnIDpKapIAbOy7OIvGGjteMaaXzV3ZPIMLKKqyMvXW+zl HfSDGPtKpyYpJvMzHFzTC+mvYORpfip9B4LchLP0ko+ueCk7pcrXZ8tDk3wApXJ85MrA yphOINLHd2Xh13QFANu06O56uQy8TUxrtOnNU1resOW5veeVeVmKax0l5s+Pw4O2ycN/ 32L5dQA4OOKFqzL7FNSbx2A5bkI1Gli26rmpiFfAwjRpP1D95fIVnztsoeuwJmwKQM4r vfuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=qGD8e8W0ADYiRiaARL57q94CaUzxErin9PPmd+A6Ntw=; fh=RveeayY87JsfRLHb5BIBxuLfYyEInMtSTST4eL1gTGQ=; b=cMcojs6s3KWMQpU+jnBaSj98gvl/mT38HfRRj72xxviBuCtMKtNigShCgu8hoVQ6YX K4p5H2drYD/pnacNbvbGSLFTx+ukJHm00fFgtJxHpe0B2HKXYR0ZMYxB5RNuIHHDTCKA 3XXD2n5aeNc4LC/5Kmw9Ln7SaScg4EPqD3eqa4mhXod6tiRXxbHCoLMR1uXpc120YfB/ 6ZadItl9df4IFcHr3AY2MFp/pda92gzOWQ/elk3EpIXXHKr8IY642xqRv3+JliS5H0Et KAUPvCo78T7PyN83meg6rDl8OzQgOQc/H0E9p0Q8RGBQsQYFsrP/qksYutWIhP5819JC GqvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-197700-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197700-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35cb0f346si2917376a12.786.2024.05.31.23.00.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 23:00:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197700-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-197700-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197700-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7AEB3B23BD4 for ; Sat, 1 Jun 2024 05:59:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F6F112E55; Sat, 1 Jun 2024 05:59:39 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD25E111A1; Sat, 1 Jun 2024 05:59:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717221579; cv=none; b=rwl74DGLnA1gSo//MaOryVQ6AbpFiJgtS3NMLDjYPcZfYt+j7HNEaEfUn1nFchWYVpdA1TNDMQs5TOWfaY03y3NU+7W9iNnfkyyDJBK/G5hi/RtB52rseub7DI+PmhcWbyHpFRah1Wgvgd9IR43taEke8n46/Xy80wDDensiK4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717221579; c=relaxed/simple; bh=icMOdDMIgwIXGGzLIxIeSihpdWV/icJnEheY/OC4ask=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IrdRsNfYo6vFW0UXEoaM4k1LKYF4IlzJFUCDTrQ1DIspcOq4/Hm9aFeRiXvDliBwS1DQOCAA1hROe9qJ8EesqoOnZK+Z2rOkpxUQuseUCKrl3BmVqBWB97ztJV9Is6tjJlaM4qgCbzsq54XBoVMUpU3QmoukJhNibjZHnOjwop8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 06C1168D17; Sat, 1 Jun 2024 07:59:32 +0200 (CEST) Date: Sat, 1 Jun 2024 07:59:31 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: Nitesh Shetty , Damien Le Moal , Jens Axboe , Jonathan Corbet , Alasdair Kergon , Mike Snitzer , Mikulas Patocka , Keith Busch , Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , Alexander Viro , Christian Brauner , Jan Kara , martin.petersen@oracle.com, david@fromorbit.com, hare@suse.de, damien.lemoal@opensource.wdc.com, anuj20.g@samsung.com, joshi.k@samsung.com, nitheshshetty@gmail.com, gost.dev@samsung.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, dm-devel@lists.linux.dev, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v20 02/12] Add infrastructure for copy offload in block and request layer. Message-ID: <20240601055931.GB5772@lst.de> References: <20240520102033.9361-1-nj.shetty@samsung.com> <20240520102033.9361-3-nj.shetty@samsung.com> <9f1ec1c1-e1b8-48ac-b7ff-8efb806a1bc8@kernel.org> <665850bd.050a0220.a5e6b.5b72SMTPIN_ADDED_BROKEN@mx.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, May 30, 2024 at 10:11:15AM -0700, Bart Van Assche wrote: > This new approach has the following two disadvantages: > * Without plug, REQ_OP_COPY_SRC and REQ_OP_COPY_DST are not combined. These two > operation types are the only operation types for which not using a plug causes > an I/O failure. So? We can clearly document that and even fail submission with a helpful message trivially to enforce that. > * A loop is required to combine the REQ_OP_COPY_SRC and REQ_OP_COPY_DST operations. I don't see why that is a problem. Especiallly once we allow multiple sources which is really useful for GC workloads we'll need to do that anyway. > Please switch to the approach Hannes suggested, namely bio chaining. Chaining > REQ_OP_COPY_SRC and REQ_OP_COPY_DST bios before these are submitted eliminates the > two disadvantages mentioned above. No.