All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] two multipathd fixes
@ 2018-11-13 21:30 Martin Wilck
  2018-11-13 21:30 ` [PATCH 1/2] multipathd: fix irritating "minor number mismatch" message Martin Wilck
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Martin Wilck @ 2018-11-13 21:30 UTC (permalink / raw)
  To: Christophe Varoqui, Benjamin Marzinski; +Cc: dm-devel, Martin Wilck

Hi Christophe,

Two small fixes, based on my prior submissions which have been
acked by Ben.

Martin

Martin Wilck (2):
  multipathd: fix irritating "minor number mismatch" message
  multipathd: reset delay_wait_checks counter on failure

 multipathd/main.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

-- 
2.19.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] multipathd: fix irritating "minor number mismatch" message
  2018-11-13 21:30 [PATCH 0/2] two multipathd fixes Martin Wilck
@ 2018-11-13 21:30 ` Martin Wilck
  2018-11-13 21:30 ` [PATCH 2/2] multipathd: reset delay_wait_checks counter on failure Martin Wilck
  2018-11-14  7:39 ` [PATCH 0/2] two multipathd fixes Christophe Varoqui
  2 siblings, 0 replies; 6+ messages in thread
From: Martin Wilck @ 2018-11-13 21:30 UTC (permalink / raw)
  To: Christophe Varoqui, Benjamin Marzinski; +Cc: dm-devel, Martin Wilck

This is really an alias mismatch, not a minor number mismatch.

Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 multipathd/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index 6289718d..0dddddb3 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -778,8 +778,8 @@ uev_remove_map (struct uevent * uev, struct vectors * vecs)
 		goto out;
 	}
 	if (strcmp(mpp->alias, alias)) {
-		condlog(2, "%s: minor number mismatch (map %d, event %d)",
-			mpp->alias, mpp->dmi->minor, minor);
+		condlog(2, "%s: map alias mismatch: have \"%s\", got \"%s\")",
+			uev->kernel, mpp->alias, alias);
 		goto out;
 	}
 
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] multipathd: reset delay_wait_checks counter on failure
  2018-11-13 21:30 [PATCH 0/2] two multipathd fixes Martin Wilck
  2018-11-13 21:30 ` [PATCH 1/2] multipathd: fix irritating "minor number mismatch" message Martin Wilck
@ 2018-11-13 21:30 ` Martin Wilck
  2018-11-14  7:39 ` [PATCH 0/2] two multipathd fixes Christophe Varoqui
  2 siblings, 0 replies; 6+ messages in thread
From: Martin Wilck @ 2018-11-13 21:30 UTC (permalink / raw)
  To: Christophe Varoqui, Benjamin Marzinski; +Cc: dm-devel, Martin Wilck

If path reinstantiation is delayed by delay_wait_checks, wait_checks
is counting down, the path fails during the delay phase, and then
comes up again, the wait_check counter starts counting down at the
same value where it previously stopped, which may be very low (even 1).

To avoid that, reset the counter to pp->delay_wait_checks if a failure
is encountered during the delay phase.

Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 multipathd/main.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index 0dddddb3..622aa1ac 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -2035,8 +2035,12 @@ check_path (struct vectors * vecs, struct path * pp, int ticks)
 					pp->wait_checks = pp->mpp->delay_wait_checks;
 					pp->watch_checks = 0;
 				}
-			}else
+			} else {
 				fail_path(pp, 0);
+				if (pp->wait_checks > 0)
+					pp->wait_checks =
+						pp->mpp->delay_wait_checks;
+			}
 
 			/*
 			 * cancel scheduled failback
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2] two multipathd fixes
  2018-11-13 21:30 [PATCH 0/2] two multipathd fixes Martin Wilck
  2018-11-13 21:30 ` [PATCH 1/2] multipathd: fix irritating "minor number mismatch" message Martin Wilck
  2018-11-13 21:30 ` [PATCH 2/2] multipathd: reset delay_wait_checks counter on failure Martin Wilck
@ 2018-11-14  7:39 ` Christophe Varoqui
  2018-11-14 18:45   ` multipath-tools: Bump version to 0.7.9 Xose Vazquez Perez
  2 siblings, 1 reply; 6+ messages in thread
From: Christophe Varoqui @ 2018-11-14  7:39 UTC (permalink / raw)
  To: Martin Wilck; +Cc: device-mapper development


[-- Attachment #1.1: Type: text/plain, Size: 454 bytes --]

Merged.
Thanks.

On Tue, Nov 13, 2018 at 10:31 PM Martin Wilck <mwilck@suse.com> wrote:

> Hi Christophe,
>
> Two small fixes, based on my prior submissions which have been
> acked by Ben.
>
> Martin
>
> Martin Wilck (2):
>   multipathd: fix irritating "minor number mismatch" message
>   multipathd: reset delay_wait_checks counter on failure
>
>  multipathd/main.c | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
>
> --
> 2.19.1
>
>

[-- Attachment #1.2: Type: text/html, Size: 771 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: multipath-tools: Bump version to 0.7.9
  2018-11-14  7:39 ` [PATCH 0/2] two multipathd fixes Christophe Varoqui
@ 2018-11-14 18:45   ` Xose Vazquez Perez
  2018-11-14 18:55     ` Christophe Varoqui
  0 siblings, 1 reply; 6+ messages in thread
From: Xose Vazquez Perez @ 2018-11-14 18:45 UTC (permalink / raw)
  To: Christophe Varoqui; +Cc: device-mapper development

Christophe Varoqui wrote:

> https://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=commitdiff;h=5c67a8b5944dd13542e6b44fa2ae9803e0cc4282

Untagged: https://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=tags

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: multipath-tools: Bump version to 0.7.9
  2018-11-14 18:45   ` multipath-tools: Bump version to 0.7.9 Xose Vazquez Perez
@ 2018-11-14 18:55     ` Christophe Varoqui
  0 siblings, 0 replies; 6+ messages in thread
From: Christophe Varoqui @ 2018-11-14 18:55 UTC (permalink / raw)
  To: Xose Vazquez Perez; +Cc: device-mapper development


[-- Attachment #1.1: Type: text/plain, Size: 351 bytes --]

This commit is now tagged.
Thanks.

On Wed, Nov 14, 2018 at 7:45 PM Xose Vazquez Perez <xose.vazquez@gmail.com>
wrote:

> Christophe Varoqui wrote:
>
> >
> https://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=commitdiff;h=5c67a8b5944dd13542e6b44fa2ae9803e0cc4282
>
> Untagged: https://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=tags
>

[-- Attachment #1.2: Type: text/html, Size: 894 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-14 18:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-13 21:30 [PATCH 0/2] two multipathd fixes Martin Wilck
2018-11-13 21:30 ` [PATCH 1/2] multipathd: fix irritating "minor number mismatch" message Martin Wilck
2018-11-13 21:30 ` [PATCH 2/2] multipathd: reset delay_wait_checks counter on failure Martin Wilck
2018-11-14  7:39 ` [PATCH 0/2] two multipathd fixes Christophe Varoqui
2018-11-14 18:45   ` multipath-tools: Bump version to 0.7.9 Xose Vazquez Perez
2018-11-14 18:55     ` Christophe Varoqui

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.