Commit cc620515 authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman
Browse files

md: Fix read balancing in RAID1 and RAID10 on drives > 2TB



commit af3a2cd6 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: default avatarJordan Russell <jr-list-2010@quo.to>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7ab3fe4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment