[dm-devel] [PATCH v2 09/11] multipathd: improve logging of reconfigure()
Benjamin Marzinski
bmarzins at redhat.com
Tue Mar 22 00:35:48 UTC 2022
On Fri, Mar 18, 2022 at 5:33 PM <mwilck at suse.com> wrote:
>
> 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>
Reviewed-by: Benjamin Marzinski <bmarzins at redhat.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