From: "Moger, Babu" <Babu.Moger@lsi.com>
To: "dm-devel@redhat.com" <dm-devel@redhat.com>
Subject: [PATCH] dm mpath: Skip calling activate_path if the path is already failed
Date: Wed, 29 Jul 2009 09:46:48 -0600 [thread overview]
Message-ID: <E463DF2B2E584B4A82673F53D62C2EF46F2BA886@cosmail01.lsi.com> (raw)
This patch adds a check to skip failed paths while calling activate_path. If the path is already failed then activate_path will fail for sure. We don't have to call in that case.
Signed-off-by: Babu Moger <babu.moger@lsi.com>
---
--- linux-2.6.31-rc3/drivers/md/dm-mpath.c.orig 2009-07-27 10:30:39.000000000 -0500
+++ linux-2.6.31-rc3/drivers/md/dm-mpath.c 2009-07-27 10:35:50.000000000 -0500
@@ -454,6 +454,10 @@ static void process_queued_ios(struct wo
m->pg_init_count++;
m->pg_init_required = 0;
list_for_each_entry(tmp, &pgpath->pg->pgpaths, list) {
+ /* Skip failed paths */
+ if (!tmp->is_active)
+ continue;
+
if (queue_work(kmpath_handlerd, &tmp->activate_path))
m->pg_init_in_progress++;
}
next reply other threads:[~2009-07-29 15:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 15:46 Moger, Babu [this message]
2009-08-14 16:39 ` [PATCH] dm mpath: Skip calling activate_path if the path is already failed Moger, Babu
2009-08-17 6:20 ` Hannes Reinecke
-- strict thread matches above, loose matches on Subject: below --
2009-07-27 17:35 Moger, Babu
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=E463DF2B2E584B4A82673F53D62C2EF46F2BA886@cosmail01.lsi.com \
--to=babu.moger@lsi.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.