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
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.7 KB
Kbuild -rw-r--r-- 2.1 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 303.1 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top