Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp44272lqb; Tue, 4 Jun 2024 04:45:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdEQxHS8u3BSW/5EEYVD6LgPyquxc5+d3MYIj+Wnh6TLyt40Hqq+xRjSApYcHDscRH25mr3JSN1244BSU3PubFG1FApHhvmgxKmAmcQw== X-Google-Smtp-Source: AGHT+IFExDK3T/F39N/PNXhqhDVDkBYO76PL3+Mf4Dmwb3P7REGJ1/k2F7DDCDRKqfmKx5U5a5d4 X-Received: by 2002:a05:6a20:8418:b0:1a7:590e:279e with SMTP id adf61e73a8af0-1b2a2b84011mr3746585637.5.1717501508620; Tue, 04 Jun 2024 04:45:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717501508; cv=pass; d=google.com; s=arc-20160816; b=CUa6tfPj17BxATaiTaa6WfXct6jrsL99DIOfFanz4JKKzvnzvQh9AQSq3P6qfOQm26 KP6Jr6eyDv2+q6tD6eos86TW6YLdt/kJNNI9uabhDSr6gpQVairDMAXyYmlc5g7qT3r2 kTyxsxhI7b7lXrna8Ip2aZYL6vhtK/QP5Q3CiZHqan10ZuJnb/Q4o373lHHzgs0/vS+y cx9r0h3QRXdjoNisIUUDVxUMolluuBkFgtuwLxFip7Q93BlIFhtKDQQv0UYZfABz1+0n DZhDfdxh5QG3DhwTPkAbhj0xT1gNkEcbeUgZUxb6K4jqTtf7r2mwgkg6GJoLw9aA2mXX zbKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7qUm0UAjYUpYgELaUp3vQTyRsNCZFqUKF3YsXC9VPcI=; fh=2PsQNPVrumgLxP8Ci8EZ1qJRecjlgE4awzmagBR9rO8=; b=BMS/Rs/sYcl1bqc//E9lxFgOlTfafM9TtX1PHJWZwCdumnSsavo6g6AhZyNWpfByLR TuG7XJAmvcxvC1YPymiZfGzcStBQKEea6Cc5xrEQUQih52jxDiDRTS22IgyN4Q/m2V13 X8E/LRecGFyZL2wbVAnhyKhilJDEaIHzxigotYl0Yyeu5SMxOo3zFicatkpcsdtwclmR PUB0NV0Y4s4wkgrv9httEd2fBxHGt5Q3o/86gupr34Xm6LaVyrtQWCq2pcgUGDIVKxZ+ 51OKOAsTrFk3yiT+n/s5CMRcp8z5it1Pa3oH3AWxC8PiUkIFEBNUBtuN3Eg6LbvWcigB B7GQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=PH0bzoil; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-200530-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-702425e41d2si543144b3a.45.2024.06.04.04.45.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 04:45:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200530-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=PH0bzoil; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-200530-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3A5F72815AA for ; Tue, 4 Jun 2024 11:45:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E49A145A1F; Tue, 4 Jun 2024 11:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="PH0bzoil" Received: from 008.lax.mailroute.net (008.lax.mailroute.net [199.89.1.11]) (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 3867114535B; Tue, 4 Jun 2024 11:44:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717501490; cv=none; b=Vg0TsuFQZuVdEsXaElUHq6F2dReGBMgNZGhR2ejoPwpmkJdWYK79vELAlMD9uDftp0ey6oZisY+M4ck/eORHW8tgGXyDHct6SiyvtRfPcUnEkkL+e9j8pVLwwM5ZXwQKIb5sP5qvqWFOHA1eON1bgstgFiT9g32HUS+wMHZAxTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717501490; c=relaxed/simple; bh=Zq3tmv7wVyTPDUnP6zcuF5O5k4OJprRbePrkTV4mQxs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ecf6kZihT9zvo5YVMk1ipovHSk4KjolV/bzzev4QM1D3km2VtT7npd4i+cQSyyWlWQeZVbBO5Tz/A2iGkCL3DAr6TS/832IaaGr3031xeSaLePqA+AG70rqD8IakaKo7/YOrnYzRWncwpHnFa9yBr2BMlSWAfSQ4iCAjoYlarGI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=PH0bzoil; arc=none smtp.client-ip=199.89.1.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 008.lax.mailroute.net (Postfix) with ESMTP id 4Vtpfm2nCnz6CmM6L; Tue, 4 Jun 2024 11:44:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1717501479; x=1720093480; bh=7qUm0UAjYUpYgELaUp3vQTyR sNCZFqUKF3YsXC9VPcI=; b=PH0bzoilwBKbtI0CATbVi7YcINf9EkEcm2c2N0CV 1/oVwONzbegPfpgoEMQNU3394kaNh4ZWcqz6bVyW5zyutvi2Xq9VBgu24G8pIM65 vc4hx0zpbsrSh7Y9GrAgZKutiC2V9wqzzVN99yfwWnHRIuyclYn7hDFRE96oz8Wq JaAttVggwSu/Djpga3VWgX3kj7CUtYmZqBGYkPXR6AuvhT78LjHBQDX7UYpSsnHC Tgn6ypj7ceaWO8DuUcqBb/5GdadTFhcBUfAwr6Uo6TykNn+CPNk5jEy07Wisb1Gq 5Mj52lkVrD41PtszHYQi/5R/4HaVA1eHn9rVUidXnlwTOw== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id JJ_f4sfDEmwz; Tue, 4 Jun 2024 11:44:39 +0000 (UTC) Received: from [192.168.132.235] (unknown [65.117.37.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 008.lax.mailroute.net (Postfix) with ESMTPSA id 4VtpfX0Smkz6CmQvG; Tue, 4 Jun 2024 11:44:35 +0000 (UTC) Message-ID: <4ffad358-a3e6-4a88-9a40-b7e5d05aa53c@acm.org> Date: Tue, 4 Jun 2024 04:44:34 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v20 02/12] Add infrastructure for copy offload in block and request layer. To: Christoph Hellwig Cc: Nitesh Shetty , Damien Le Moal , Jens Axboe , Jonathan Corbet , Alasdair Kergon , Mike Snitzer , Mikulas Patocka , Keith Busch , 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 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> <20240601055931.GB5772@lst.de> <20240604044042.GA29094@lst.de> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20240604044042.GA29094@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/3/24 21:40, Christoph Hellwig wrote: > There is no requirement to process them synchronously, there is just > a requirement to preserve the order. Note that my suggestion a few > arounds ago also included a copy id to match them up. If we don't > need that I'm happy to leave it away. If need it it to make stacking > drivers' lifes easier that suggestion still stands. Including an ID in REQ_OP_COPY_DST and REQ_OP_COPY_SRC operations sounds much better to me than abusing the merge infrastructure for combining these two operations into a single request. With the ID-based approach stacking drivers are allowed to process copy bios asynchronously and it is no longer necessary to activate merging for copy operations if merging is disabled (QUEUE_FLAG_NOMERGES). Thanks, Bart.