From: David Wysochanski <davidw@netapp.com>
To: dm-devel@redhat.com
Subject: multipathd:checkerloop() - why not check path state before calling pathinfo(), which calls path priority callouts?
Date: Wed, 01 Mar 2006 14:54:47 -0500 [thread overview]
Message-ID: <4405FC07.9090006@netapp.com> (raw)
Looking through the mulitpathd code, in particular checkerloop() and the
below snippit. I'm wondering why the path state isn't checked and then the
pathinfo() not called if the path state is PATH_DOWN (or maybe !PATH_UP).
Seems like we shouldn't be trying to refresh the priority if we know the
path is bad anyway, since the callouts all issue scsi passthru commands,
which will always fail. Is this right or am I missing something?
Thanks.
/*
* path prio refreshing
*/
condlog(4, "path prio refresh");
pathinfo(pp, conf->hwtable, DI_PRIO);
if (need_switch_pathgroup(pp->mpp, 0)) {
if (pp->mpp->pgfailback > 0 &&
pp->mpp->failback_tick <= 0)
pp->mpp->failback_tick =
pp->mpp->pgfailback + 1;
else if (pp->mpp->pgfailback ==
-FAILBACK_IMMEDIATE)
switch_pathgroup(pp->mpp);
}
next reply other threads:[~2006-03-01 19:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 19:54 David Wysochanski [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-03-01 20:51 multipathd:checkerloop() - why not check path stat e before calling pathinfo(), which calls path priority callouts? egoggin
2006-03-01 23:54 ` multipathd:checkerloop() - why not check path state " David Wysochanski
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=4405FC07.9090006@netapp.com \
--to=davidw@netapp.com \
--cc=dm-devel@redhat.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.