Patch "MD: not clear ->safemode for external metadata array" has been added to the 4.12-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
MD: not clear ->safemode for external metadata array
to the 4.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
md-not-clear-safemode-for-external-metadata-array.patch
and it can be found in the queue-4.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
afc1f55ca44e257f69da8f43e0714a76686ae8d1Mon Sep 17 00:00:00 2001
From: Shaohua Li <[email protected]>
Date: Fri, 11 Aug 2017 20:34:45 -0700
Subject: MD: not clear ->safemode for external metadata array
From: Shaohua Li <[email protected]>
commit afc1f55ca44e257f69da8f43e0714a76686ae8d1 upstream.
->safemode should be triggered by mdadm for external metadaa array, otherwise array's state confuses mdadm.
--- drivers/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c +1 -1
@@ -8639,7 +8639,7 @@ void md_check_recovery(struct mddev *mddif (mddev_trylock (mddev)) {int spares =0 ; -if (mddev->safemode ==1 ) +if (!mddev->external && mddev->safemode ==1 ) mddev->safemode =0 ;if (mddev->ro) {
Patches currently in stable-queue which might be from [email protected] are
queue-4.12/md-not-clear-safemode-for-external-metadata-array.patch queue-4.12/md-always-clear-safemode-when-md_check_recovery-gets-the-mddev-lock.patch queue-4.12/md-fix-test-in-md_write_start.patch