[dm-devel] [PATCH v2 09/11] multipathd: improve logging of reconfigure()
mwilck at suse.com
mwilck at suse.com
Fri Mar 18 22:33:37 UTC 2022
From: Martin Wilck <mwilck at suse.com>
Print a message when reconfigure() actually starts doing something,
and when a reconfigure() call is delayed.
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
multipathd/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/multipathd/main.c b/multipathd/main.c
index 4721cd8..e841ba8 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -2840,6 +2840,7 @@ reconfigure (struct vectors *vecs, enum force_reload_types reload_type)
if (verbosity)
libmp_verbosity = verbosity;
setlogmask(LOG_UPTO(libmp_verbosity + 3));
+ condlog(2, "%s: setting up paths and maps", __func__);
/*
* free old map and path vectors ... they use old conf state
@@ -3419,6 +3420,7 @@ child (__attribute__((unused)) void *param)
pthread_mutex_lock(&config_lock);
__delayed_reconfig = true;
pthread_mutex_unlock(&config_lock);
+ condlog(3, "delaying reconfigure()");
}
lock_cleanup_pop(vecs->lock);
if (!rc)
--
2.35.1
More information about the dm-devel
mailing list