This patch adds calls to dm_path_event for a failed path and a reinstated path. Signed-off-by: Mike Anderson drivers/md/dm-mpath.c | 7 +++++++ 1 files changed, 7 insertions(+) Index: linux-2.6.18-rc7/drivers/md/dm-mpath.c =================================================================== --- linux-2.6.18-rc7.orig/drivers/md/dm-mpath.c 2006-10-13 17:10:21.000000000 +0100 +++ linux-2.6.18-rc7/drivers/md/dm-mpath.c 2006-10-13 17:10:34.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 #include @@ -898,6 +899,9 @@ static int fail_path(struct pgpath *pgpa 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: @@ -939,6 +943,9 @@ static int reinstate_path(struct pgpath 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: