Re: [PATCH v3 2/2] mm/gup_test: report actual pinned bytes
From: David Hildenbrand
Date: Sat Sep 19 2026 - 16:15:58 EST
On Tue, 01 Sep 2026 14:04:52 +0530, Sarthak Sharma wrote:
> __gup_test_ioctl() advances addr to the end of the current batch before
> checking if GUP pinned the entire requested batch. If GUP pins more than
> 0 pages but less than the requested batch size, addr still advances by
> the requested batch size.
>
> The next iteration detects the partial pinning and breaks out of the loop.
> Again gup->size is calculated using addr - gup->addr, so it also includes
> the unpinned pages of the requested batch.
>
> [...]
Applied, thanks!
tree: mm/core.git
branch: gup-7.4.misc
Applied patches will appear soon in mm-next, followed by linux-next.
Please report any outstanding bugs that were missed during review, so we
can either drop the patch series or decide how to fix it up.
It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even
though the patches have already been applied. If possible, patch trailers
will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. Further, this is not a guarantee that the
patches will go upstream. If in doubt, please check the listed branch.
[2/2] mm/gup_test: report actual pinned bytes
https://git.kernel.org/mm/core/c/65a79b9b
--
Cheers,
David