Hi Jason, On Tue, 7 Feb 2023 08:17:46 -0400 Jason Gunthorpe <jgg@xxxxxxxxxx> wrote: > > Just s/= FOLL_PIN/= 0/, it is unconditionally set internally when calling > pin_user_pages_fast() Thanks, I have done just that for today: From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Date: Wed, 8 Feb 2023 13:33:55 +1100 Subject: [PATCH] fixup for "mm/gup: move private gup FOLL_ flags to internal.h" interacting with "iov_iter: Add a function to extract a page list from an iterator" from the block tree. Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> --- lib/iov_iter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iov_iter.c b/lib/iov_iter.c index 95b8047be5a7..f6c6aef6fbfb 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -2140,7 +2140,7 @@ static ssize_t iov_iter_extract_user_pages(struct iov_iter *i, size_t *offset0) { unsigned long addr; - unsigned int gup_flags = FOLL_PIN; + unsigned int gup_flags = 0; size_t offset; int res; -- 2.35.1 -- Cheers, Stephen Rothwell
Attachment:
pgp3zv2RrGefj.pgp
Description: OpenPGP digital signature