All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Wysochanski <dave.wysochanski@redhat.com>
To: Edward Goggin <egoggin@emc.com>
Cc: dm-devel@redhat.com, christophe.varoqui@free.fr
Subject: RE: patch to discovery.c to still getpathpriorityforpaths with path state of PATH_DOWN
Date: Wed, 15 Nov 2006 18:09:59 -0500	[thread overview]
Message-ID: <1163632199.8310.15.camel@linux-cxyg.rtp.netapp.com> (raw)
In-Reply-To: <6CCEAEDF4D06984A83F427424F47D6E4013D1554@CORPUSMX40A.corp.emc.com>

On Wed, 2006-11-15 at 17:48 -0500, Edward Goggin wrote:
> OK.  I was trying not to have to introduce another
> prio state because that approach just seems prone
> to error.
> 
> I'll give it a try tomorrow.
> 

Ed has a point.

An effect of using the special value approach over the flag is a
potential conflict with the callouts using the same values.  The flag
approach isolates his initialization case better.


> > -----Original Message-----
> > From: Christophe Varoqui [mailto:christophe.varoqui@free.fr] 
> > Sent: Wednesday, November 15, 2006 5:34 PM
> > To: goggin, edward
> > Cc: dave.wysochanski@redhat.com; dm-devel@redhat.com
> > Subject: RE: [dm-devel] patch to discovery.c to still 
> > getpathpriorityforpaths with path state of PATH_DOWN
> > 
> > Le mercredi 15 novembre 2006 à 14:48 -0500, Edward Goggin a écrit :
> > > On Wednesday, November 15, 2006 1:49 AM, Dave Wysochanski wrote
> > > 
> > > > One other thought I had was the notion of a "priority valid" 
> > > > flag (or a
> > > > special priority value) in the path for the case of 
> > > > group_by_prio.  Set
> > > > it to invalid in alloc_path(), then just don't add the path to the
> > > > multipath struct in coalesce_paths() if the priority value 
> > > > was invalid.
> > > > Then over in checkerloop(), add the path to the multipath 
> > map when you
> > > > get a valid priority.
> > > > 
> > > > It is more complicated than that I'm sure (e.g. 
> > checkerloop() assumes
> > > > pp->mpp is non-null in places, etc) but seemed like a half-decent
> > > > approach to at least consider.
> > > > 
> > > > This approach doesn't take into consideration the general 
> > case of a
> > > > change in path priority though.
> > > 
> > > I very much like the first part of your "priority valid" idea
> > > mentioned above.
> > > 
> > > I've enclosed a patch for the first part of your idea.  The patch
> > > should address the concern you had about recalculating priority
> > > for a path when its path state changes from not PATH_DOWN to
> > > PATH_DOWN.  It now only retrieves the priority for PATH_DOWN
> > > paths if the path's priority has never been successfully
> > > retrieved before.
> > > 
> > How about the following, clarifying PRIO values and avoiding the
> > additional "struct path" element ?
> > 
> > Please have a careful look at the 
> > multipath/main.c:update_paths change,
> > because the (!pp->priority) that was there awfully looks like 
> > a bug (as
> > 0 is not a defined prio value).
> > 
> > Regards,
> > cvaroqui
> > 
> > 
> > 

  parent reply	other threads:[~2006-11-15 23:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-10 23:01 patch to discovery.c to still get path priority for paths with path state of PATH_DOWN Edward Goggin
2006-11-13 20:04 ` Dave Wysochanski
2006-11-13 20:47   ` patch to discovery.c to still get path priority forpaths " Edward Goggin
2006-11-14 14:26     ` Dave Wysochanski
2006-11-14 20:09       ` patch to discovery.c to still get path priorityforpaths " Edward Goggin
2006-11-15  6:48         ` Dave Wysochanski
2006-11-15 19:48           ` patch to discovery.c to still get pathpriorityforpaths " Edward Goggin
2006-11-15 20:28             ` Dave Wysochanski
2006-11-15 22:33             ` Christophe Varoqui
2006-11-15 22:43               ` David Wysochanski
2006-11-15 22:57                 ` Christophe Varoqui
2006-11-15 22:48               ` patch to discovery.c to still getpathpriorityforpaths " Edward Goggin
2006-11-15 22:58                 ` Christophe Varoqui
2006-11-15 23:09                 ` Dave Wysochanski [this message]
2006-11-17 13:49                   ` patch to discovery.c to stillgetpathpriorityforpaths " Edward Goggin
2006-11-17 21:06                     ` Christophe Varoqui

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=1163632199.8310.15.camel@linux-cxyg.rtp.netapp.com \
    --to=dave.wysochanski@redhat.com \
    --cc=christophe.varoqui@free.fr \
    --cc=dm-devel@redhat.com \
    --cc=egoggin@emc.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.