[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] [PATCH 3/4] dm-netlink: Add calls for failed and reinstated paths
- From: Mike Anderson <andmike us ibm com>
- To: dm-devel redhat com
- Subject: [dm-devel] [PATCH 3/4] dm-netlink: Add calls for failed and reinstated paths
- Date: Tue, 9 Jan 2007 01:33:49 -0800
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:
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]