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