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] multipathd: cli_reinstate(): avoid reinstated paths being failed again
Date: Wed, 2 Jul 2025 10:08:51 -0400	[thread overview]
Message-ID: <aGU9c-nUF5PiaZ3k@redhat.com> (raw)
In-Reply-To: <20250701220933.156676-1-mwilck@suse.com>

On Wed, Jul 02, 2025 at 12:09:33AM +0200, Martin Wilck wrote:
> After manually failing some paths and then reinstating them, the
> following pattern of events has been observed:
> 
> [1535664.790944] localhost multipathd[26335]: mpathc: reinstate path 8:48 (operator)
> [1535664.791422] localhost multipathd[26335]: mpathc: devmap event #4
> [1535664.793140] localhost kernel: device-mapper: multipath: 254:6: Reinstating path 8:48.
> [1535665.219024] localhost multipathd[26335]: mpathc: reload [0 125829120 multipath 1 queue_if_no_path 1 alua 2 1 queue-length 0 2 1 8:144 1 8:240 1 queue-length 0 2 1 8:48 1 65:80 1]
> [1535665.290268] localhost multipathd[26335]: sync_map_state: failing sdd state 2 dmstate 2
> [1535665.292442] localhost kernel: device-mapper: multipath: 254:6: Failing path 8:48.
> [1535669.291320] localhost multipathd[26335]: sdd: tur state = up
> [1535669.291531] localhost multipathd[26335]: mpathc: sdd - tur checker reports path is up
> [1535669.291531] localhost multipathd[26335]: 8:48: reinstated
> 
> We see that sdd (8:48) is first reinstated, then failed again during
> the reload operation, and finally reinstated in the checker.
> 
> This happens because multipathd doesn't update the internal path state when it
> calls dm_reinstate_path(). If sync_map_state() is called, it will see the path
> in PATH_DOWN state and fail the path again.
> 
> Fix it by setting pp->state to PATH_UNCHECKED.
> 
> Signed-off-by: Martin Wilck <mwilck@suse.com>

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


      reply	other threads:[~2025-07-02 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-01 22:09 [PATCH] multipathd: cli_reinstate(): avoid reinstated paths being failed again Martin Wilck
2025-07-02 14:08 ` Benjamin Marzinski [this message]

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=aGU9c-nUF5PiaZ3k@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.