All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Marzinski <bmarzins@redhat.com>
To: Martin Wilck <martin.wilck@suse.com>
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>,
	dm-devel@lists.linux.dev, Martin Wilck <mwilck@suse.com>
Subject: Re: [PATCH v3 04/15] multipathd: emit a warning if a map remains inconsistent after reload
Date: Wed, 22 Jan 2025 13:15:46 -0500	[thread overview]
Message-ID: <Z5E10rn9eLs6eaHr@redhat.com> (raw)
In-Reply-To: <20250117202738.126196-5-mwilck@suse.com>

On Fri, Jan 17, 2025 at 09:27:27PM +0100, Martin Wilck wrote:
> After reading the kernel device-mapper table, update_pathvec_from_dm()
> sets the mpp->need_reload flag if an inconsistent state was found (often a
> path with wrong WWID). We expect reload_and_sync_map() to fix this situation.
> If this is not the case (need_reload still set after map reloading), it's
> most probably a bug.
> 
> Signed-off-by: Martin Wilck <mwilck@suse.com>

Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>

> ---
>  multipathd/main.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/multipathd/main.c b/multipathd/main.c
> index e4e6bf7..ff3031e 100644
> --- a/multipathd/main.c
> +++ b/multipathd/main.c
> @@ -3026,13 +3026,20 @@ checkerloop (void *ap)
>  							     start_time.tv_sec);
>  			if (checker_state == CHECKER_FINISHED) {
>  				vector_foreach_slot(vecs->mpvec, mpp, i) {
> +					bool inconsistent;
> +
>  					sync_mpp(vecs, mpp, ticks);
> -					if ((update_mpp_prio(mpp) || mpp->need_reload) &&
> +					inconsistent = mpp->need_reload;
> +					if ((update_mpp_prio(mpp) || inconsistent) &&
>  					    reload_and_sync_map(mpp, vecs) == 2) {
>  						/* multipath device deleted */
>  						i--;
>  						continue;
>  					}
> +					/* need_reload was cleared in dm_addmap and then set again */
> +					if (inconsistent && mpp->need_reload)
> +						condlog(1, "BUG: %s; map remained in inconsistent state after reload",
> +							mpp->alias);
>  				}
>  			}
>  			lock_cleanup_pop(vecs->lock);
> -- 
> 2.47.1


  reply	other threads:[~2025-01-22 18:15 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-17 20:27 [PATCH v3 00/15] multipathd: More map reload handling, and checkerloop work Martin Wilck
2025-01-17 20:27 ` [PATCH v3 01/15] multipathd: don't reload map in update_mpp_prio() Martin Wilck
2025-01-17 20:27 ` [PATCH v3 02/15] multipathd: remove dm_get_info() call from refresh_multipath() Martin Wilck
2025-01-17 20:27 ` [PATCH v3 03/15] multipathd: sync maps at end of checkerloop Martin Wilck
2025-01-22 18:15   ` Benjamin Marzinski
2025-01-17 20:27 ` [PATCH v3 04/15] multipathd: emit a warning if a map remains inconsistent after reload Martin Wilck
2025-01-22 18:15   ` Benjamin Marzinski [this message]
2025-01-17 20:27 ` [PATCH v3 05/15] multipathd: move yielding for waiters to start of checkerloop Martin Wilck
2025-01-17 20:27 ` [PATCH v3 06/15] multipathd: add checker_finished() Martin Wilck
2025-01-17 20:27 ` [PATCH v3 07/15] multipathd: move "tick" calls into checker_finished() Martin Wilck
2025-01-17 20:27 ` [PATCH v3 08/15] multipathd: don't call reload_and_sync_map() from deferred_failback_tick() Martin Wilck
2025-01-22 18:16   ` Benjamin Marzinski
2025-01-17 20:27 ` [PATCH v3 09/15] multipathd: move retry_count_tick() into existing mpvec loop Martin Wilck
2025-01-17 20:27 ` [PATCH v3 10/15] multipathd: don't call update_map() from missing_uev_wait_tick() Martin Wilck
2025-01-17 20:27 ` [PATCH v3 11/15] multipathd: don't call udpate_map() from ghost_delay_tick() Martin Wilck
2025-01-17 20:27 ` [PATCH v3 12/15] multipathd: only call reload_and_sync_map() when ghost delay expires Martin Wilck
2025-01-17 20:27 ` [PATCH v3 13/15] multipathd: remove non-existent maps in checkerloop Martin Wilck
2025-01-17 20:27 ` [PATCH v3 14/15] multipathd: remove mpvec_garbage_collector() Martin Wilck
2025-01-17 20:27 ` [PATCH v3 15/15] multipathd: enable pathgroups in checker_finished() Martin Wilck
2025-01-20 23:51   ` Benjamin Marzinski
2025-01-21 11:12     ` Martin Wilck
2025-01-21 21:16       ` Benjamin Marzinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z5E10rn9eLs6eaHr@redhat.com \
    --to=bmarzins@redhat.com \
    --cc=christophe.varoqui@opensvc.com \
    --cc=dm-devel@lists.linux.dev \
    --cc=martin.wilck@suse.com \
    --cc=mwilck@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.