Re: (subset) [PATCH 0/2] splice: handle zero-count sendfile to full pipes
From: Christian Brauner
Date: Tue Dec 01 2026 - 08:18:58 EST
On Sat, 28 Nov 2026 13:42:32 +0000, Mehtab Zafar wrote:
> sendfile() sends to a pipe through splice_file_to_pipe() directly. For a
> zero-count operation, that helper currently waits for pipe space before the
> lower-level read sees the zero length. On a full pipe this makes blocking
> sendfile() wait and nonblocking sendfile() return -EAGAIN, while splice()
> returns zero immediately.
>
> Patch 1 returns before waiting when the helper receives a zero length.
> Patch 2 adds kselftest coverage for full blocking and nonblocking pipes.
>
> [...]
Applied to the vfs-7.5.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.5.misc 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-7.5.misc
[1/2] splice: return immediately for zero-length file-to-pipe splices
https://git.kernel.org/vfs/vfs/c/63c480154381