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

From
Andy Lutomirski <luto@amacapital.net>
Date
2019-11-02 22:30:56
Also in
keyrings, linux-block, linux-fsdevel, linux-security-module, linux-usb, lkml
Reply to
Linus Torvalds, 2019-11-02
On Nov 2, 2019, at 3:04 PM, Linus Torvalds [off-list ref] wrote:

On Sat, Nov 2, 2019 at 1:31 PM Andy Lutomirski [off-list ref] wrote:
quoted
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.
So you allocate memory, vmsplice, and munmap() without reusing it?  Just plain free() won’t be good enough. I suspect the TLB overhead will make this a loss in most workloads?

Or maybe you vmsplice from a read-only mapping of a file that you know no one modifies?  This could be useful, but you can just splice() from the file directly.
Thread (53 messages) 53 messages, 12 authors, last reply 2019-12-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help