diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2010-01-21 19:33:14 +0100 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-01-22 11:34:54 +0100 |
commit | 98ec286e016a028678cc943b1a1f87668ad447c8 (patch) | |
tree | 7e64c5f4537d7b16f1e786ae23dde5a8be1c5bae /drivers/block/drbd/drbd_receiver.c | |
parent | f06f135d8642e2f6812cfcb4ea8e4e9122d4d58c (diff) | |
download | lwn-98ec286e016a028678cc943b1a1f87668ad447c8.tar.gz lwn-98ec286e016a028678cc943b1a1f87668ad447c8.zip |
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>
Diffstat (limited to 'drivers/block/drbd/drbd_receiver.c')
0 files changed, 0 insertions, 0 deletions