Re: [RFC PATCH 1/4] splice: Fix corruption of spliced data after splice() returns

From: Matthew Wilcox
Date: Wed Jul 19 2023 - 16:05:05 EST


On Wed, Jul 19, 2023 at 09:56:44PM +0200, Miklos Szeredi wrote:
> On Wed, 19 Jul 2023 at 21:44, Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
> > So what's the API that provides the semantics of _copying_?
>
> What's your definition of copying?

Future modifications to the pagecache do not affect the data after the
syscall has returned success. Modifications to the pagecache while
the syscall is in progress may or may not affect the data received at
the destination.