From: Chandra Seetharaman <sekharan@us.ibm.com>
To: dm-devel@redhat.com
Cc: andmike@us.ibm.com, michaelc@cs.wisc.edu,
christophe.varoqui@free.fr, agk@redhat.com
Subject: [PATCH 2/3] Fix the priority calculation to use PATH_GHOST state
Date: Wed, 21 Mar 2007 11:38:45 -0800 [thread overview]
Message-ID: <20070321193845.24487.53463.sendpatchset@localhost.localdomain> (raw)
In-Reply-To: <20070321193833.24487.76682.sendpatchset@localhost.localdomain>
Index: multipath-tools-0.4.7/libmultipath/discovery.c
===================================================================
--- multipath-tools-0.4.7.orig/libmultipath/discovery.c 2007-03-20 14:45:21.000000000 -0700
+++ multipath-tools-0.4.7/libmultipath/discovery.c 2007-03-20 14:45:41.000000000 -0700
@@ -699,7 +699,7 @@
if (mask & DI_CHECKER && get_state(pp))
goto blank;
- if (mask & DI_PRIO && pp->state != PATH_DOWN)
+ if (mask & DI_PRIO && pp->state == PATH_UP)
get_prio(pp);
if (mask & DI_WWID && !strlen(pp->wwid))
Index: multipath-tools-0.4.7/libmultipath/switchgroup.c
===================================================================
--- multipath-tools-0.4.7.orig/libmultipath/switchgroup.c 2007-03-20 14:45:21.000000000 -0700
+++ multipath-tools-0.4.7/libmultipath/switchgroup.c 2007-03-20 14:45:41.000000000 -0700
@@ -28,7 +28,7 @@
priority = 0;
vector_foreach_slot (pgp->paths, pp, j) {
- if (pp->state != PATH_DOWN)
+ if (pp->state == PATH_UP)
priority += pp->priority;
}
pgp->priority = priority;
--
----------------------------------------------------------------------
Chandra Seetharaman | Be careful what you choose....
- sekharan@us.ibm.com | .......you may get it.
----------------------------------------------------------------------
next prev parent reply other threads:[~2007-03-21 19:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-21 19:38 [PATCH 0/3] Changes to Userspace multipath code to support lsi-rdac Chandra Seetharaman
2007-03-21 19:38 ` [PATCH 1/3] C4 Inquiry based path checker Chandra Seetharaman
2007-03-21 19:38 ` Chandra Seetharaman [this message]
2007-03-21 19:38 ` [PATCH 3/3] Increase the wait time for device to appear in /dev Chandra Seetharaman
2007-03-21 23:06 ` [PATCH 0/3] Changes to Userspace multipath code to support lsi-rdac Christophe Varoqui
2007-03-22 22:52 ` Bernd Zeimetz
2007-03-22 23:45 ` Chandra Seetharaman
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=20070321193845.24487.53463.sendpatchset@localhost.localdomain \
--to=sekharan@us.ibm.com \
--cc=agk@redhat.com \
--cc=andmike@us.ibm.com \
--cc=christophe.varoqui@free.fr \
--cc=dm-devel@redhat.com \
--cc=michaelc@cs.wisc.edu \
/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.