summaryrefslogtreecommitdiffstats
path: root/drivers/md/persistent-data
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2015-07-06 09:37:49 +0200
committerNeilBrown <neilb@suse.com>2015-07-22 06:08:24 +0200
commit299b0685e31c9f3dcc2d58ee3beca761a40b44b3 (patch)
treeabd3411d0c452e9f8b6e95f106f871042c3d98de /drivers/md/persistent-data
parentmd/raid5: avoid races when changing cache size. (diff)
downloadlinux-299b0685e31c9f3dcc2d58ee3beca761a40b44b3.tar.xz
linux-299b0685e31c9f3dcc2d58ee3beca761a40b44b3.zip
md/raid10: always set reshape_safe when initializing reshape_position.
'reshape_position' tracks where in the reshape we have reached. 'reshape_safe' tracks where in the reshape we have safely recorded in the metadata. These are compared to determine when to update the metadata. So it is important that reshape_safe is initialised properly. Currently it isn't. When starting a reshape from the beginning it usually has the correct value by luck. But when reducing the number of devices in a RAID10, it has the wrong value and this leads to the metadata not being updated correctly. This can lead to corruption if the reshape is not allowed to complete. This patch is suitable for any -stable kernel which supports RAID10 reshape, which is 3.5 and later. Fixes: 3ea7daa5d7fd ("md/raid10: add reshape support") Cc: stable@vger.kernel.org (v3.5+ please wait for -final to be out for 2 weeks) Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'drivers/md/persistent-data')
0 files changed, 0 insertions, 0 deletions