summaryrefslogtreecommitdiffstats
path: root/drivers/md/bitmap.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-05-07 04:48:10 +0200
committerNeilBrown <neilb@suse.de>2009-05-07 04:48:10 +0200
commit18055569127253755d01733f6ecc004ed02f88d0 (patch)
tree5f1fa83f98d8a6d08cd1916106a2c5b9f9f6ec43 /drivers/md/bitmap.c
parentmd: fix loading of out-of-date bitmap. (diff)
downloadlinux-18055569127253755d01733f6ecc004ed02f88d0.tar.xz
linux-18055569127253755d01733f6ecc004ed02f88d0.zip
md/raid10: don't clear bitmap during recovery if array will still be degraded.
If we have a raid10 with multiple missing devices, and we recover just one of these to a spare, then we risk (depending on the bitmap and array chunk size) clearing bits of the bitmap for which recovery isn't complete (because a device is still missing). This can lead to a subsequent "re-add" being recovered without any IO happening, which would result in loss of data. This patch takes the safe approach of not clearing bitmap bits if the array will still be degraded. This patch is suitable for all active -stable kernels. Cc: stable@kernel.org Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions