MD: not clear ->safemode for external metadata array
authorShaohua Li <shli@fb.com>
Sat, 12 Aug 2017 03:34:45 +0000 (20:34 -0700)
committerShaohua Li <shli@fb.com>
Sat, 12 Aug 2017 03:42:06 +0000 (20:42 -0700)
commitafc1f55ca44e257f69da8f43e0714a76686ae8d1
tree6db36809235796c74f28061ff7690e49ea44530f
parenta9501d742127e613d744e29814e9532bacb147e8
MD: not clear ->safemode for external metadata array

->safemode should be triggered by mdadm for external metadaa array, otherwise
array's state confuses mdadm.

Fixes: 33182d15c6bf(md: always clear ->safemode when md_check_recovery gets the mddev lock.)
Cc: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c