• David Howells's avatar
    kcm: Support MSG_SPLICE_PAGES · 2b03bcae
    David Howells authored
    Make AF_KCM sendmsg() support MSG_SPLICE_PAGES.  This causes pages to be
    spliced from the source iterator if possible.
    
    This allows ->sendpage() to be replaced by something that can handle
    multiple multipage folios in a single transaction.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    cc: Tom Herbert <tom@herbertland.com>
    cc: Tom Herbert <tom@quantonium.net>
    cc: Cong Wang <cong.wang@bytedance.com>
    cc: Jens Axboe <axboe@kernel.dk>
    cc: Matthew Wilcox <willy@infradead.org>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    2b03bcae
kcmsock.c 45.3 KB