kcm: Convert kcm_sendpage() to use MSG_SPLICE_PAGES
authorDavid Howells <dhowells@redhat.com>
Wed, 31 May 2023 11:04:22 +0000 (12:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 6 Jun 2023 03:51:56 +0000 (20:51 -0700)
commit5bb3a5cb3e217b838e85661f527818e16ce61bec
tree6a148c7950b18e5f9a7234610561b1d6bfde0d6a
parent2b03bcae66c7b29f151e51d3109dbe1e31272235
kcm: Convert kcm_sendpage() to use MSG_SPLICE_PAGES

Convert kcm_sendpage() to use sendmsg() with MSG_SPLICE_PAGES rather than
directly splicing in the pages itself.

This allows ->sendpage() to be replaced by something that can handle
multiple multipage folios in a single transaction.

Signed-off-by: David 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: Jakub Kicinski <kuba@kernel.org>
net/kcm/kcmsock.c