* [PATCH] multipath-tools: Manual failback fix when priority changes
@ 2011-05-27 14:30 Moger, Babu
2011-06-06 22:55 ` [PATCH] multipath-tools: Manual failback fix whenpriority changes Moger, Babu
0 siblings, 1 reply; 3+ messages in thread
From: Moger, Babu @ 2011-05-27 14:30 UTC (permalink / raw)
To: dm-devel
Current code switches the path-group when there is a change in priority. However,
this is not the right thing to do when failback is set to manual. This patch fixes
this problem. Call update_path_groups only if failback is immediate.
Signed-off-by: Babu Moger <babu.moger@netapp.com>
---
--- multipath-tools/multipathd/main.c.orig 2011-05-26 08:06:08.000000000 -0500
+++ multipath-tools/multipathd/main.c 2011-05-26 08:21:39.000000000 -0500
@@ -1189,7 +1189,8 @@ check_path (struct vectors * vecs, struc
condlog(4, "path prio refresh");
if (update_prio(pp, new_path_up) &&
- pp->mpp->pgpolicyfn == (pgpolicyfn *)group_by_prio)
+ (pp->mpp->pgpolicyfn == (pgpolicyfn *)group_by_prio) &&
+ pp->mpp->pgfailback == -FAILBACK_IMMEDIATE)
update_path_groups(pp->mpp, vecs, !new_path_up);
else if (need_switch_pathgroup(pp->mpp, 0)) {
if (pp->mpp->pgfailback > 0 &&
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] multipath-tools: Manual failback fix whenpriority changes
2011-05-27 14:30 [PATCH] multipath-tools: Manual failback fix when priority changes Moger, Babu
@ 2011-06-06 22:55 ` Moger, Babu
2011-06-07 6:02 ` Christophe Varoqui
0 siblings, 1 reply; 3+ messages in thread
From: Moger, Babu @ 2011-06-06 22:55 UTC (permalink / raw)
To: device-mapper development, christophe.varoqui
Christophe,
Did you get a chance to look at this patch? Let me know if you have any feedback.
> -----Original Message-----
> From: Moger, Babu
> Sent: Friday, May 27, 2011 9:30 AM
> To: dm-devel@redhat.com
> Subject: [dm-devel] [PATCH] multipath-tools: Manual failback fix
> whenpriority changes
>
> Current code switches the path-group when there is a change in priority.
> However,
> this is not the right thing to do when failback is set to manual. This
> patch fixes
> this problem. Call update_path_groups only if failback is immediate.
>
> Signed-off-by: Babu Moger <babu.moger@netapp.com>
>
> ---
> --- multipath-tools/multipathd/main.c.orig 2011-05-26 08:06:08.000000000
> -0500
> +++ multipath-tools/multipathd/main.c 2011-05-26 08:21:39.000000000
> -0500
> @@ -1189,7 +1189,8 @@ check_path (struct vectors * vecs, struc
> condlog(4, "path prio refresh");
>
> if (update_prio(pp, new_path_up) &&
> - pp->mpp->pgpolicyfn == (pgpolicyfn *)group_by_prio)
> + (pp->mpp->pgpolicyfn == (pgpolicyfn *)group_by_prio) &&
> + pp->mpp->pgfailback == -FAILBACK_IMMEDIATE)
> update_path_groups(pp->mpp, vecs, !new_path_up);
> else if (need_switch_pathgroup(pp->mpp, 0)) {
> if (pp->mpp->pgfailback > 0 &&
>
>
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] multipath-tools: Manual failback fix whenpriority changes
2011-06-06 22:55 ` [PATCH] multipath-tools: Manual failback fix whenpriority changes Moger, Babu
@ 2011-06-07 6:02 ` Christophe Varoqui
0 siblings, 0 replies; 3+ messages in thread
From: Christophe Varoqui @ 2011-06-07 6:02 UTC (permalink / raw)
To: Moger, Babu; +Cc: device-mapper development
On lun., 2011-06-06 at 18:55 -0400, Moger, Babu wrote:
> Christophe,
> Did you get a chance to look at this patch? Let me know if you have any feedback.
>
Thank you for the reminder. This patch indeed escaped my attention.
Now merged.
> > -----Original Message-----
> > From: Moger, Babu
> > Sent: Friday, May 27, 2011 9:30 AM
> > To: dm-devel@redhat.com
> > Subject: [dm-devel] [PATCH] multipath-tools: Manual failback fix
> > whenpriority changes
> >
> > Current code switches the path-group when there is a change in priority.
> > However,
> > this is not the right thing to do when failback is set to manual. This
> > patch fixes
> > this problem. Call update_path_groups only if failback is immediate.
> >
> > Signed-off-by: Babu Moger <babu.moger@netapp.com>
> >
> > ---
> > --- multipath-tools/multipathd/main.c.orig 2011-05-26 08:06:08.000000000
> > -0500
> > +++ multipath-tools/multipathd/main.c 2011-05-26 08:21:39.000000000
> > -0500
> > @@ -1189,7 +1189,8 @@ check_path (struct vectors * vecs, struc
> > condlog(4, "path prio refresh");
> >
> > if (update_prio(pp, new_path_up) &&
> > - pp->mpp->pgpolicyfn == (pgpolicyfn *)group_by_prio)
> > + (pp->mpp->pgpolicyfn == (pgpolicyfn *)group_by_prio) &&
> > + pp->mpp->pgfailback == -FAILBACK_IMMEDIATE)
> > update_path_groups(pp->mpp, vecs, !new_path_up);
> > else if (need_switch_pathgroup(pp->mpp, 0)) {
> > if (pp->mpp->pgfailback > 0 &&
> >
> >
--
Christophe Varoqui
OpenSVC - Tools to scale
http://www.opensvc.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-07 6:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-27 14:30 [PATCH] multipath-tools: Manual failback fix when priority changes Moger, Babu
2011-06-06 22:55 ` [PATCH] multipath-tools: Manual failback fix whenpriority changes Moger, Babu
2011-06-07 6:02 ` 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.