From: MORITA Kazutaka <[email protected]>

Without this patch, the recovery thread cannot start the next recovery
and the stopped recovery cannot start any more.

Signed-off-by: MORITA Kazutaka <[email protected]>
---

I think this should go into the stable branch, too.

 sheep/recovery.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sheep/recovery.c b/sheep/recovery.c
index e734b88..c63f416 100644
--- a/sheep/recovery.c
+++ b/sheep/recovery.c
@@ -611,7 +611,8 @@ static void recover_object_main(struct work *work)
                 * lifted and flush wait queue to requeue those
                 * requests
                 */
-               wakeup_all_requests();
+               rinfo->notify_complete = false;
+               finish_recovery(rinfo);
                sd_debug("recovery is stopped");
                goto out;
        }
-- 
1.7.9.5

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to