aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-07-02 21:46:53 -0400
committerNeilBrown <neilb@suse.de>2012-07-02 21:46:53 -0400
commit5cfb22a1f83e4f04c0a4df89b60053a077222e2b (patch)
tree9312c806fb3fb245beb0dd6669569f88a79a8b7d /lib/mpi/mpi-bit.c
parentfc448a18ae6219af9a73257b1fbcd009efab4a81 (diff)
md/raid5: prefer replacing failed devices over want-replacement devices.
If a RAID5 has both a failed device and a device marked as 'WantReplacement', then we should preferentially replace the failed device. However the current code replaces whichever is found first. So split into 2 loops, check fail failed/missing first, and only check for WantReplacement if nothing is failed or missing. Reported-by: majianpeng <majianpeng@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions