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 E7ED9189F47; Mon, 4 Nov 2024 08:55:48 +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=1730710550; cv=none; b=CMO6HO8SH5/XZ2GMruc4lnGWlgsoY64KOW6Svn6/tNrph84WsIhICk56z7Si2p+TA6RQVhroRAJF6R92X+KQAUfdOBcymv99jSozwPpS2pbkhldU1oWcIc0Ar/Z7D/y8RkYVJBC0QXIg7Dxqssv/B8JlGOkVp7mEuZmlHm9tRCg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730710550; c=relaxed/simple; bh=Y388ylC4i8iTPvc9B4G+QXOv3nw5BajY8qwg0zTx0Lo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DPE80N8eoVbG7yusZBtvMuS2WOIOHtekgvG2lwszvjNyBpz+4fcIDwxeYPz12hTx+4LFV/t2YMis3dWhpITVHy++uimViEl6m+OC5UhGfgZ7TUUrvVQrPMaHtusaNTqjIu6zWGrWXxnQnl46gGllwKn9ScSJd8Gfkqe4qM6cz6w= 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 8DFB9227AB0; Mon, 4 Nov 2024 09:55:45 +0100 (CET) Date: Mon, 4 Nov 2024 09:55:45 +0100 From: Christoph Hellwig To: Bart Van Assche Cc: Leon Romanovsky , Jens Axboe , Jason Gunthorpe , Robin Murphy , Joerg Roedel , Will Deacon , Christoph Hellwig , Sagi Grimberg , Keith Busch , Bjorn Helgaas , Logan Gunthorpe , Yishai Hadas , Shameer Kolothum , Kevin Tian , Alex Williamson , Marek Szyprowski , =?iso-8859-1?B?Suly9G1l?= Glisse , Andrew Morton , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 2/7] block: don't merge different kinds of P2P transfers in a single bio Message-ID: <20241104085545.GB24211@lst.de> References: <34d44537a65aba6ede215a8ad882aeee028b423a.1730037261.git.leon@kernel.org> Precedence: bulk X-Mailing-List: linux-block@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, Oct 31, 2024 at 01:58:37PM -0700, Bart Van Assche wrote: > On 10/27/24 7:21 AM, Leon Romanovsky wrote: >> + /* >> + * When doing ZONE_DEVICE-based P2P transfers, all pages in a >> + * bio must be P2P pages from the same device. >> + */ >> + if ((bio->bi_opf & REQ_P2PDMA) && >> + !zone_device_pages_have_same_pgmap(bv->bv_page, page)) >> + return 0; > > It's probably too late to change the "zone_device_" prefix into > something that cannot be confused with a reference to zoned block > devices? It's too late and also wrong and also entirely out of scope for this series.