<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From: Mike Anderson &lt;andmike@us.ibm.com&gt;

This patch adds calls to dm_path_event for a failed path and a reinstated
path.

Signed-off-by: Mike Anderson &lt;andmike@us.ibm.com&gt;
Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;
---

 drivers/md/dm-mpath.c |    7 +++++++
 1 files changed, 7 insertions(+)

Index: linux-2.6.23-rc6/drivers/md/dm-mpath.c
===================================================================
--- linux-2.6.23-rc6.orig/drivers/md/dm-mpath.c	2007-09-18 17:33:53.000000000 +0100
+++ linux-2.6.23-rc6/drivers/md/dm-mpath.c	2007-09-18 17:35:18.000000000 +0100
@@ -10,6 +10,7 @@
 #include "dm-hw-handler.h"
 #include "dm-bio-list.h"
 #include "dm-bio-record.h"
+#include "dm-netlink.h"
 
 #include &lt;linux/ctype.h&gt;
 #include &lt;linux/init.h&gt;
@@ -834,6 +835,9 @@ static int fail_path(struct pgpath *pgpa
 	if (pgpath == m-&gt;current_pgpath)
 		m-&gt;current_pgpath = NULL;
 
+	dm_path_event(DM_EVENT_PATH_FAILED, m-&gt;ti-&gt;table,
+		      pgpath-&gt;path.dev-&gt;name, m-&gt;nr_valid_paths);
+
 	queue_work(kmultipathd, &amp;m-&gt;trigger_event);
 
 out:
@@ -873,6 +877,9 @@ static int reinstate_path(struct pgpath 
 	if (!m-&gt;nr_valid_paths++ &amp;&amp; m-&gt;queue_size)
 		queue_work(kmultipathd, &amp;m-&gt;process_queued_ios);
 
+	dm_path_event(DM_EVENT_PATH_REINSTATED, m-&gt;ti-&gt;table,
+		      pgpath-&gt;path.dev-&gt;name, m-&gt;nr_valid_paths);
+
 	queue_work(kmultipathd, &amp;m-&gt;trigger_event);
 
 out:
</pre></body></html>