From: Lars Ellenberg Date: Thu, 21 Jan 2010 18:33:14 +0000 (+0100) Subject: drbd: fix max_segment_size initialization X-Git-Tag: v2.6.33-rc7~37^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98ec286e016a028678cc943b1a1f87668ad447c8;p=pandora-kernel.git 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 Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed