drbd: Use sendmsg(MSG_SPLICE_PAGES) rather than sendpage()
authorDavid Howells <dhowells@redhat.com>
Fri, 23 Jun 2023 22:55:07 +0000 (23:55 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Jun 2023 22:50:13 +0000 (15:50 -0700)
commiteeac7405c735acde8ec78869489a5aa25a141c13
treebec2d388e06d8310f4c255e14b90055f7ca6f036
parent2f8bc2bbb0fa87bcf7fb9eeb65eb6d79c5a08895
drbd: Use sendmsg(MSG_SPLICE_PAGES) rather than sendpage()

Use sendmsg() conditionally with MSG_SPLICE_PAGES in _drbd_send_page()
rather than calling sendpage() or _drbd_no_send_page().

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Philipp Reisner <philipp.reisner@linbit.com>
cc: Lars Ellenberg <lars.ellenberg@linbit.com>
cc: "Christoph Böhmwalder" <christoph.boehmwalder@linbit.com>
cc: Jens Axboe <axboe@kernel.dk>
cc: drbd-dev@lists.linbit.com
Link: https://lore.kernel.org/r/20230623225513.2732256-11-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/block/drbd/drbd_main.c