Re: [PATCH v1] iomap: release pages on atomic dio size mismatch
From: Christian Brauner
Date: Wed Jun 17 2026 - 09:18:47 EST
On Fri, 12 Jun 2026 12:40:41 +0800, Fengnan Chang wrote:
> If bio_iov_iter_get_pages() or the bounce helper succeeds but builds a
> short bio, the REQ_ATOMIC size check rejects it before submission. The
> old error path only dropped the bio reference, leaving any pages already
> attached to the bio unreleased.
>
> Release or unbounce the pages before falling through to out_put_bio on
> this error path.
>
> [...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now 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. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] iomap: release pages on atomic dio size mismatch
https://git.kernel.org/vfs/vfs/c/7d9491184bf7