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.35-rc1~440^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af3a2cd6b8a479345786e7fe5e199ad2f6240e56;p=pandora-kernel.git md: Fix read balancing in RAID1 and RAID10 on drives > 2TB 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 Cc: stable@kernel.org Signed-off-by: NeilBrown --- Reading git-diff-tree failed