From mboxrd@z Thu Jan 1 00:00:00 1970 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 7F57E37E; Sat, 1 Jun 2024 05:47:08 +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=1717220831; cv=none; b=KEWOAvj/uqQL36C9KB+3uTtXy0zBeTRjltxDx4B5K98zSXkF4TRPLJnsYCa5/NPFmWI+5ScF0ohSgkeR+i76T/whaOr50a/vIm/Lc/vsCnjA7wm6UB2GIwR5wUnyO6dHDJx/l4YUw+EQzTPXg/oQkiCDDAqCjwck8DCB8GPA7dQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717220831; c=relaxed/simple; bh=CJ+CsOuKaOOry5C1Al6fTmEmJSHrJIOhjAx91ykVv6Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rnM6560gc0T4NVsojO8pJyN1TPisXJ0g5cXI5w/YSUergzkAhIrKfzxDBcwYLM9rm/L3r5R916y9wGnMaL8oC7BmaPKeuULl9e1bkEIOQ7GJXP3PjHUO02yLGxRmjJOFgX3YvcxYhM0wyA2vuqDah2lFnKPpSJIt20mSUk/HHwI= 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 3EE1068D17; Sat, 1 Jun 2024 07:47:02 +0200 (CEST) Date: Sat, 1 Jun 2024 07:47:01 +0200 From: Christoph Hellwig To: Nitesh Shetty Cc: 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, bvanassche@acm.org, 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 00/12] Implement copy offload support Message-ID: <20240601054701.GA5613@lst.de> References: <20240520102033.9361-1-nj.shetty@samsung.com> Precedence: bulk X-Mailing-List: linux-fsdevel@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: <20240520102033.9361-1-nj.shetty@samsung.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, May 20, 2024 at 03:50:13PM +0530, Nitesh Shetty wrote: > So copy offload works only for request based storage drivers. I don't think that is actually true. It just requires a fair amount of code in a bio based driver to match the bios up. I'm missing any kind of information on what this patch set as-is actually helps with. What operations are sped up, for what operations does it reduce resource usage? Part of that might be that the included use case of offloading copy_file_range doesn't seem particularly useful - on any advance file system that would be done using reflinks anyway. Have you considered hooking into dm-kcopyd which would be an instant win instead? Or into garbage collection in zoned or other log structured file systems? Those would probably really like multiple source bios, though.