drbd: fix max_segment_size initialization
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 21 Jan 2010 18:33:14 +0000 (19:33 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 22 Jan 2010 10:34:54 +0000 (11:34 +0100)
commit98ec286e016a028678cc943b1a1f87668ad447c8
tree7e64c5f4537d7b16f1e786ae23dde5a8be1c5bae
parentf06f135d8642e2f6812cfcb4ea8e4e9122d4d58c
drbd: fix max_segment_size initialization

blk_queue_make_request() internally calls blk_set_default_limits(),
so calling blk_queue_max_segment_size() before is useless.
Ergo: move the call to blk_queue_max_segment_size() down a few lines.

Impact:
If, after a fresh modprobe, you first connect a Diskless drbd,
then attach, this could result in a DRBD Protocol Error at first.
The next connection attempt would then succeeded.

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