From 319ff86014875134131234a6ced3f9e3cc656637 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Fri, 26 Jul 2019 16:52:01 -0700 Subject: [PATCH] scoutfs: lock recovery info messages Lock recovery is perfectly normal if a server is unmounted and another is elected to take its place. Turn the lock recovery message into an info message instead of a warning and add another info message when lock recovery is complete. Signed-off-by: Zach Brown --- kmod/src/lock_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kmod/src/lock_server.c b/kmod/src/lock_server.c index 3f93c150..b330218e 100644 --- a/kmod/src/lock_server.c +++ b/kmod/src/lock_server.c @@ -631,6 +631,8 @@ static int finished_recovery(struct super_block *sb, u64 rid, bool cancel) scoutfs_key_set_zeros(&key); + scoutfs_info(sb, "all lock clients recovered"); + while ((snode = get_server_lock(inf, &key, NULL, true))) { key = snode->key; @@ -986,7 +988,7 @@ int scoutfs_lock_server_setup(struct super_block *sb) if (nr) { schedule_delayed_work(&inf->recovery_dwork, msecs_to_jiffies(LOCK_SERVER_RECOVERY_MS)); - scoutfs_warn(sb, "waiting for %u lock clients to connect", nr); + scoutfs_info(sb, "waiting for %u lock clients to recover", nr); } out: