lkml.org 
[lkml]   [2023]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: copy on write for splice() from file to pipe?
    On Thu, Feb 09, 2023 at 02:55:59PM +0100, Stefan Metzmacher wrote:
    > Hi Linus and others,
    >
    > as written in a private mail before, I'm currently trying to
    > make use of IORING_OP_SPLICE in order to get zero copy support
    > in Samba.

    I have to ask why. In a modern network, isn't all data encrypted?
    So you have to encrypt into a different buffer, and then you checksum
    that buffer. So it doesn't matter if writes can change the page cache
    after you called splice(), you just need to have the data be consistent
    so the checksum doesn't change.

    \
     
     \ /
      Last update: 2023-03-27 00:16    [W:3.115 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site