]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit12a295dff65bdfaf1fd46c1e92fb9c5374ae4893
treed1aa2d5a2673a063e7cc8b9a4bba5305c608f6a1
parent329edb73f3a0604a1d1e4259676f3df73fbe3f3a
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