From: NeilBrown Date: Fri, 7 May 2010 22:20:17 +0000 (+1000) Subject: md: Fix read balancing in RAID1 and RAID10 on drives > 2TB X-Git-Tag: v2.6.27.48~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2a41e6807357c237ec2bbd61e79cb1558e48b8a;p=pandora-kernel.git md: Fix read balancing in RAID1 and RAID10 on drives > 2TB commit af3a2cd6b8a479345786e7fe5e199ad2f6240e56 upstream. read_balance uses a "unsigned long" for a sector number which will get truncated beyond 2TB. This will cause read-balancing to be non-optimal, and can cause data to be read from the 'wrong' branch during a resync. This has a very small chance of returning wrong data. Reported-by: Jordan Russell Signed-off-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed