Re: [PATCH 0/3] vmsplice: make vmsplice a trivial wrapper for preadv2/pwritev2
Linus Torvalds <[email protected]>
| Newsgroups | org.kernel.vger.linux-api,dev.linux.lists.patches,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.netdev,org.kvack.linux-mm |
|---|---|
| Message-ID | <CAHk-=wiAqf0PdZ4AKj_4riUnnEb=g_ZNPkLnXrByA9BBHYiFRg@mail.gmail.com> |
On Tue, 2 Jun 2026 at 14:37, Pedro Falcato <[email protected]> wrote: > > Well, that's most definitely part of my patch. Also, you cannot outright > remove splice() functionality That isn't what Askar's patch ever did. You apparently didn't even read it. Honestly, I think you are the one out of line here. Askar did something I suggested years ago, and didn't remove any functionality. It just changes vmsplice to be a copying model (one of the directions already was). It doesn't change regular splice at all. And yes, it has the potential to be a visible behavior difference - if some insane user uses vmsplice and then modifies the buffer *afterwards*, then that would be semantically different between a zero-copy and a normal copy. But that would be insane behavior, and was never really reliable anyway even with zero-copy (ie subsequent writes to user space buffers would potentially do COW breaking based purely on timing and memory pressure etc, so anybody who relied on it being visible wasn't goign to get it realiably anyway) Perhaps more importantly, it has the potential to change performance - zero-copy *can* be a performance win, although typically it really doesn't tend to be (looking up the page mapping is often slower than copying). I would expect it to be very clear in trivial benchmarks that aren't actually real loads. And probably not visible anywhere else. But your responses have been making it clear that you didn't seem to actually look at the patch or the history of it. Trying to make it look like Askar is the problem is only making you look worse. Anyway, the vmsplice() thing is queued up in Christian's tree, and I guess we'll see if anybody even notices anything. Linus