drbd: improve usage of MSG_MORE
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 25 May 2010 14:26:16 +0000 (16:26 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 1 Jun 2010 09:12:27 +0000 (11:12 +0200)
commitba11ad9a3b9dd2dbb9c6686ea9d41a9a77d94327
treed1aa2d5a2673a063e7cc8b9a4bba5305c608f6a1
parent5dbf1673383f2f1554f0634fdfc390d59dc2c7d6
drbd: improve usage of MSG_MORE

It seems to improve performance if we allow the "p_data" header in its
own frame (no MSG_MORE), but sendpage all but the last page with MSG_MORE.
This is also in preparation of a later zero copy receive implementation.

Suggested by Eduard.Guzovsky@stratus.com on drbd-dev.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/drbd/drbd_main.c