From: Mike Anderson <andmike@us.ibm.com>
To: dm-devel@redhat.com
Subject: [PATCH 3/4] dm-netlink: Add calls for failed and reinstated paths
Date: Tue, 9 Jan 2007 01:33:49 -0800 [thread overview]
Message-ID: <20070109093349.GD11649@us.ibm.com> (raw)
In-Reply-To: <20070109093006.GA11649@us.ibm.com>
From: Mike Anderson <andmike@us.ibm.com>
This patch adds calls to dm_path_event for a failed path and a reinstated
path.
Signed-off-by: Mike Anderson <andmike@us.ibm.com>
---
drivers/md/dm-mpath.c | 6 ++++++
1 file changed, 6 insertions(+)
Index: linux-2.6-patched/drivers/md/dm-mpath.c
===================================================================
--- linux-2.6-patched.orig/drivers/md/dm-mpath.c 2007-01-09 01:11:44.000000000 -0800
+++ linux-2.6-patched/drivers/md/dm-mpath.c 2007-01-09 01:12:05.000000000 -0800
@@ -834,6 +834,9 @@
if (pgpath == m->current_pgpath)
m->current_pgpath = NULL;
+ dm_path_event(DM_EVENT_FAIL_PATH, m->ti->table,
+ pgpath->path.dev->name, m->nr_valid_paths);
+
queue_work(kmultipathd, &m->trigger_event);
out:
@@ -873,6 +876,9 @@
if (!m->nr_valid_paths++ && m->queue_size)
queue_work(kmultipathd, &m->process_queued_ios);
+ dm_path_event(DM_EVENT_REINSTATE_PATH, m->ti->table,
+ pgpath->path.dev->name, m->nr_valid_paths);
+
queue_work(kmultipathd, &m->trigger_event);
out:
next prev parent reply other threads:[~2007-01-09 9:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-09 9:30 [PATCH 0/4] dm-netlink: Add netlink events to dm Mike Anderson
2007-01-09 9:31 ` [PATCH 1/4] dm-netlink: Add dm-netlink skeleton Mike Anderson
2007-01-09 9:32 ` [PATCH 2/4] dm-netlink: Add support for the event functions Mike Anderson
2007-01-09 9:33 ` Mike Anderson [this message]
2007-01-09 9:34 ` [PATCH 4/4] dm-netlink: Add mempool support to dm-netlink Mike Anderson
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=20070109093349.GD11649@us.ibm.com \
--to=andmike@us.ibm.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.