https://github.com/torvalds/linux
Revision ea358cd0d2c634ff1379a1392edcdf2289f31e13 authored by NeilBrown on 12 June 2015, 10:05:04 UTC, committed by NeilBrown on 12 June 2015, 10:16:33 UTC
MD_RECOVERY_DONE is normally cleared by md_check_recovery after a
resync etc finished.  However it is possible for raid5_start_reshape
to race and start a reshape before MD_RECOVERY_DONE is cleared.  This
can lean to multiple reshapes running at the same time, which isn't
good.

To make sure it is cleared before starting a reshape, and also clear
it when reaping a thread, just to be safe.

Signed-off-by: NeilBrown  <neilb@suse.de>
1 parent 8e8e251
History
Tip revision: ea358cd0d2c634ff1379a1392edcdf2289f31e13 authored by NeilBrown on 12 June 2015, 10:05:04 UTC
md: make sure MD_RECOVERY_DONE is clear before starting recovery/resync
Tip revision: ea358cd
File Mode Size
.gitignore -rw-r--r-- 151 bytes
Kconfig -rw-r--r-- 2.9 KB
Makefile -rw-r--r-- 2.3 KB
gen_init_cpio.c -rw-r--r-- 12.7 KB
initramfs_data.S -rw-r--r-- 1.3 KB

back to top