From: Lars Ellenberg Date: Mon, 25 Jun 2012 17:15:58 +0000 (+0200) Subject: drbd: fix max_bio_size to be unsigned X-Git-Tag: v3.6-rc1~6^2~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db141b2f42b485b700465fe2401fbe65c65b190c;p=pandora-kernel.git drbd: fix max_bio_size to be unsigned We capped our max_bio_size respectively max_hw_sectors with min_t(int, lower level limit, our limit); unfortunately, some drivers, e.g. the kvm virtio block driver, initialize their limits to "-1U", and that is of course a smaller "int" value than our limit. Impact: we started to request 16 MB resync requests, which lead to protocol error and a reconnect loop. Fix all relevant constants and parameters to be unsigned int. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed