diff options
author | NeilBrown <neilb@suse.com> | 2018-10-03 15:04:41 +1000 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2018-10-03 09:52:08 -0700 |
commit | 059421e041eb461fb2b3e81c9adaec18ef03ca3c (patch) | |
tree | f8905e3753fed6d8c17ea83f6c9b04d6cb36317b /drivers/md/raid5-cache.c | |
parent | d595567dc4f0c1d90685ec1e2e296e2cad2643ac (diff) | |
download | linux-stable-059421e041eb461fb2b3e81c9adaec18ef03ca3c.tar.gz linux-stable-059421e041eb461fb2b3e81c9adaec18ef03ca3c.tar.bz2 linux-stable-059421e041eb461fb2b3e81c9adaec18ef03ca3c.zip |
md: allow metadata updates while suspending an array - fix
Commit 35bfc52187f6 ("md: allow metadata update while suspending.")
added support for allowing md_check_recovery() to still perform
metadata updates while the array is entering the 'suspended' state.
This is needed to allow the processes of entering the state to
complete.
Unfortunately, the patch doesn't really work. The test for
"mddev->suspended" at the start of md_check_recovery() means that the
function doesn't try to do anything at all while entering suspend.
This patch moves the code of updating the metadata while suspending to
*before* the test on mddev->suspended.
Reported-by: Jeff Mahoney <jeffm@suse.com>
Fixes: 35bfc52187f6 ("md: allow metadata update while suspending.")
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid5-cache.c')
0 files changed, 0 insertions, 0 deletions