dlm: Use sendmsg(MSG_SPLICE_PAGES) rather than sendpage
authorDavid Howells <dhowells@redhat.com>
Fri, 23 Jun 2023 22:55:03 +0000 (23:55 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Jun 2023 22:50:12 +0000 (15:50 -0700)
commita1a5e8752786b2f7c5699fb99e3a641936297d69
tree0b58a5a2f0598418fa7005035ac4d1070444bd71
parent572efade27c55f11436ed10bbb59ef10c6d83d93
dlm: Use sendmsg(MSG_SPLICE_PAGES) rather than sendpage

When transmitting data, call down a layer using a single sendmsg with
MSG_SPLICE_PAGES to indicate that content should be spliced rather using
sendpage.  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: Christine Caulfield <ccaulfie@redhat.com>
cc: David Teigland <teigland@redhat.com>
cc: Jens Axboe <axboe@kernel.dk>
cc: Matthew Wilcox <willy@infradead.org>
cc: cluster-devel@redhat.com
Link: https://lore.kernel.org/r/20230623225513.2732256-7-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
fs/dlm/lowcomms.c