Re: copy on write for splice() from file to pipe?

From: Linus Torvalds
Date: Fri Feb 10 2023 - 15:27:31 EST


On Fri, Feb 10, 2023 at 11:56 AM Andy Lutomirski <luto@xxxxxxxxxx> wrote:
>
> i think this is almost exactly what Jeremy and Stefan are asking for
> re: notification when the system is done with a zero-copy send:

Yeah, right now it's all just "incremented page counts", I think.

Even the pipe code itself doesn't know about writes that have already
been done, but that are pending elsewhere.

You'd have to ask the target file descriptor itself about "how much do
you have pending" or something.

Linus