From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796044625; b=RdXZMt8czeYd8S5QCooVVpjD3FpasWgemrwVZfb5OAohp6gu7orfQd5iuVroDwstvJmg uM0x2T3HQOeurbhBkkjppnGlKUn70faUZdWhH261aaEi/IFfpIuHk2d9l0bDX0rTnqvTe cRGO1JOxRBOh2UOGdqrq5/0IFfhOvwFOTuf+cyv5ixlzQARG4UdIxEiNmO7wqOG8fm3by RIqD//mkAizmk3tmaeRDpcU9I1o71oyIorsxG3pZgrYLXL/hWq2CCRLvQtyeAJ4KdMX4s r9tnBwNvZnQpikmHW1eREdZeB2XWlkyWnXjsO8iNwKZmzBvzSR+yLr8qJnml805fONQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796044625; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=BwZbjDZn+JkIJF5fTMjbGubNvlFI/mztikVBS/JINBY=; b=UBocmhIdeOAYYf/bFy3FAdNgG/jeGHFhCq1wREr/VI0NNjYaHNjx1FzxiTorldWnaDGG ETZwmgvLxTelRbsF1A5kS6aKI6sYCwkJP40RYZckXtXVDsA8H2HYNT1SBojGpxncDPeqp PDNZHsMwrlSakZfaMlDE2iz+/8nfrj4k9U54UeoiwynqUuIKkHHgzZD5OOpnNdCoEVq9+ dZV1Bm1m3Ygeuw1u2q18X+ADluFQn0ZN6ryFZpwTti/SvbK9kGLTglpLn+otbdWY/Ljyv q7xAd8mokucbytzQ+Udodv2RUri8h8YiAXXaegZj96M4Uz1frWeiocV6gGrFbGXnvTw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9996D606A31C; Mon, 30 Nov 2026 13:17:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9996D606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (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 EDBFD68BFE; Mon, 30 Nov 2026 14:16:58 +0100 (CET) Date: Mon, 30 Nov 2026 14:16:58 +0100 From: Christoph Hellwig To: "David Hildenbrand (Arm)" Cc: Naman Jain , Christoph Hellwig , Jens Axboe , Andrew Morton , Alexander Viro , Oscar Salvador , Logan Gunthorpe , Leon Romanovsky , Keith Busch , linux-block@vger.kernel.org, linux-mm@kvack.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] iov_iter: Fix direct I/O across compatible device pgmaps Message-ID: <20261130131657.GC29203@lst.de> References: <20261126053433.88531-1-namjain@linux.microsoft.com> <5cc60faa-002c-4c96-97e3-46d3002718c9@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5cc60faa-002c-4c96-97e3-46d3002718c9@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Nov 26, 2026 at 02:12:29PM +0100, David Hildenbrand (Arm) wrote: > Can you convert this to proper kernel doc while at it? > > Also this should all be working on folios instead of pages. But that will need a > zone_device_folios_have_same_pgmap() so we can defer it, not suitable for this fix. I don't think the magic fake pages for ZONE_DEVICE mappings are folios by any reasonable interpretation. In the long run the bio_vec needs to store physical addresses instead, but that's a lot of work, and so far no one has volunteered to actually do this.