Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp867549lqh; Fri, 31 May 2024 22:57:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIs/lmjg8VO/t7l606fA10XB6ABf7xJC5ObRewlVjZnhj8V9mlbPjwyD5QEoH+SZvYWcKkX5ICy6ooSG49N4vocDSOJIFaSF3757Zt6w== X-Google-Smtp-Source: AGHT+IEJy0KEHhzgcxk2tcY9JrCZvqRBurAO2VExgTPQzffFmYVXtyIw9pqxPCQl9qgp8dqG17em X-Received: by 2002:a17:90a:df04:b0:2c2:711:68db with SMTP id 98e67ed59e1d1-2c20711691emr383392a91.38.1717221475720; Fri, 31 May 2024 22:57:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717221475; cv=pass; d=google.com; s=arc-20160816; b=ZpKVHrXAi2spkpje3r1yD8fu14rKw0j+wATfvYfNEez99o+zcSlLsg4ug6PGsu3efw oMGD7/6LfUZo3qd1KNAIB1yy6X/nOKUCPmvGXs2AtX8LvNIh76gjGpHkLu+O0TZZI4qB ndBPaF/qcJpERfjBEEzPIWehDSfiX30NAqEKIa3ia0X4gUQC0ymd6Kk8Kw2I0D5HSQEl jrz0dI/t5Gscv7WtjrA0ECfaxDJ40yVO39UBMeREPDeAPbqCk4FpTS8OTSmFrwIFN46c nweHBihu8ZbAjU6R1hCCct9cxZoY0baeqRXBQooi3CGc0cm9GXnPJIbUgAFkH0Lf8Zpz EtgA== 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=lbm1kVGcmOM+XzpzZi8WDrCvDIH13qGyXAURLwgVzmM=; fh=ukpJEmG3orISJuHqvQih2HUABq4PBmz1rsvrGUfInw8=; b=y067dN+u6AEyiVEmPxioQQS8H7ElQSxF1OCTQrZiDQXXGBUbcYi76JZDoJX7fYrff/ lOsLb819/ldA5AGK+BKV3xcCYhITeYLVVDsduTD8WsbnZSOt7kYl2dUsW4XQcj+S5jsM IsjSw7wK3mw7oIIQS87KcbULeBCgZvjDfcItR0311jKUL/ck4CyvKdSdoJ+d0L2iQPP7 /sc6iXVSbFvuVXwaTtbDZhwitU6qKgtKTeJbNEGDSwOp54g0Hg/1ALLZJMwDHm88pYuY ZeRSpIQv6CGm1Wql4BqUqKgGR7st9oBM7loQuMiqiwsKvzswjwpOz5sZAJHS1SM8LZ1O Ib1Q==; 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-197699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197699-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a7785dc3si4706435a91.83.2024.05.31.22.57.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 22:57:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-197699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197699-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AFB2C285A90 for ; Sat, 1 Jun 2024 05:57:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A39A12E75; Sat, 1 Jun 2024 05:57:43 +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 532ED111A8; Sat, 1 Jun 2024 05:57:41 +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=1717221462; cv=none; b=hxC/xVeowvM64R0ebTOGLFr1P2K/QA9da4PjE6/KvMUl99KTV0L8rZr9lhUbtFMOyp0CKPkPUSpG3mi0jeQNcNBlute/Tz+0hjUDIn0jhBbBSU1WvCPlFLNqiFP76ttm/aUEuiU+wq84DLssHmO8wbYrLZnjuh2IFY6oyV10TMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717221462; c=relaxed/simple; bh=RtLg5SIXalA/xjJDVWd3IwNH9f+yh9qpLP07b0GBOJE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CB3+O62+oh/VROsPofPBYHqviurMIQPLfcrNVOkn2WHprLRg7sR2cYAh+CAglm6qkd+/548KaCy3aftmdJi3vi6I/6lhSdTkckhk5MkB12Bm9ZjthSARsErLp2WOyN25VKZ5NEoCNvQx9AMA9VJxnMBufPwCpk9lTFqvwOfu7H0= 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 B4E3468D17; Sat, 1 Jun 2024 07:57:35 +0200 (CEST) Date: Sat, 1 Jun 2024 07:57:35 +0200 From: Christoph Hellwig To: Damien Le Moal Cc: Nitesh Shetty , Bart Van Assche , 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: <20240601055735.GA5772@lst.de> References: <20240520102033.9361-1-nj.shetty@samsung.com> <20240520102033.9361-3-nj.shetty@samsung.com> <9f1ec1c1-e1b8-48ac-b7ff-8efb806a1bc8@kernel.org> 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: <9f1ec1c1-e1b8-48ac-b7ff-8efb806a1bc8@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, May 29, 2024 at 04:48:18PM +0900, Damien Le Moal wrote: > > Yes, in this case copy won't work, as both src and dst bio reach driver > > as part of separate requests. > > We will add this as part of documentation. > > So that means that 2 major SAS HBAs which set this flag (megaraid and mpt3sas) > will not get support for copy offload ? Not ideal, by far. We really need to ignore the normerges flag for this. As should we for the precedence in the discard merging. And the drivers need to stop setting this flag as they have no business to, but that's a separate discussion (and the flag can still be set manually).