Re: [PATCH v6 03/34] iov_iter: Pass I/O direction into iov_iter_get_pages*()

From: Christoph Hellwig
Date: Thu Jan 19 2023 - 00:49:06 EST


On Thu, Jan 19, 2023 at 02:11:19AM +0000, Al Viro wrote:
> PS: Documentation/driver-api/pci/p2pdma.rst seems to imply that those
> pages should not be possible to mmap, so either that needs to be
> updated, or... how the hell could we run into those in g-u-p,
> anyway? Really confused...

Yes, that needs an update. That limitation was from before the
mmap support was added.