Re: [RFC PATCH 11/10] pipe: Add fsync() support [ver #2]

From: Linus Torvalds
Date: Sat Nov 02 2019 - 18:04:06 EST


On Sat, Nov 2, 2019 at 1:31 PM Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>
> Add in the fact that itâs not obvious that vmsplice *can* be used correctly, and Iâm wondering if we should just remove it or make it just do write() under the hood.

Sure it can. Just don't modify the data you vmsplice. It's really that simple.

That said, if we don't have any actual users, then we should look at
removing it (maybe turning it into "write()" as you say). Not because
it's hard to use, but simply because it probably doesn't have that
many uses.

Linus