Blame SOURCES/0543-mdraid-mdraid_start.sh-tell-mainloop-if-we-make-prog.patch

0903d0
From f421aa0f16a6afa56b7b27796ee0708385dd933a Mon Sep 17 00:00:00 2001
0903d0
From: NeilBrown <neilb@suse.de>
0903d0
Date: Thu, 26 Mar 2015 15:41:46 +1100
0903d0
Subject: [PATCH] mdraid/mdraid_start.sh: tell mainloop if we make progress.
0903d0
0903d0
mdraid_start is a number of scripts which run after a timeout.
0903d0
If it makes progress, it should tell the main loop so that it
0903d0
knows that it is worth waiting a bit longer.
0903d0
0903d0
So in that case, create the initqueue/work file which the main loop
0903d0
checks for.
0903d0
0903d0
Signed-off-by: NeilBrown <neilb@suse.de>
0903d0
0903d0
Cherry-picked from: 3b82ac16
0903d0
Resolves: #1451660
0903d0
---
0903d0
 modules.d/90mdraid/mdraid_start.sh | 1 +
0903d0
 1 file changed, 1 insertion(+)
0903d0
0903d0
diff --git a/modules.d/90mdraid/mdraid_start.sh b/modules.d/90mdraid/mdraid_start.sh
0903d0
index fe0e9f40..39998b03 100755
0903d0
--- a/modules.d/90mdraid/mdraid_start.sh
0903d0
+++ b/modules.d/90mdraid/mdraid_start.sh
0903d0
@@ -29,6 +29,7 @@ _md_force_run() {
0903d0
 
0903d0
         _path_d="${_path_s%/*}/degraded"
0903d0
         [ ! -r "$_path_d" ] && continue
0903d0
+        > $hookdir/initqueue/work
0903d0
     done
0903d0
 }
0903d0