Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79eb885c authored by Edward Goggin's avatar Edward Goggin Committed by Linus Torvalds
Browse files

dm mpath: log device name



Make the mapped device structure accessible to hardware handlers so error
messages can include the device name.

Signed-off-by: default avatarEdward Goggin <egoggin@emc.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 46b47730
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@
struct hw_handler_type;
struct hw_handler_type;
struct hw_handler {
struct hw_handler {
	struct hw_handler_type *type;
	struct hw_handler_type *type;
	struct mapped_device *md;
	void *context;
	void *context;
};
};


+3 −0
Original line number Original line Diff line number Diff line
@@ -668,6 +668,9 @@ static int parse_hw_handler(struct arg_set *as, struct multipath *m)
		return -EINVAL;
		return -EINVAL;
	}
	}


	m->hw_handler.md = dm_table_get_md(ti->table);
	dm_put(m->hw_handler.md);

	r = hwht->create(&m->hw_handler, hw_argc - 1, as->argv);
	r = hwht->create(&m->hw_handler, hw_argc - 1, as->argv);
	if (r) {
	if (r) {
		dm_put_hw_handler(hwht);
		dm_put_hw_handler(hwht);
+1 −0
Original line number Original line Diff line number Diff line
@@ -1236,6 +1236,7 @@ void dm_put(struct mapped_device *md)
		free_dev(md);
		free_dev(md);
	}
	}
}
}
EXPORT_SYMBOL_GPL(dm_put);


/*
/*
 * Process the deferred bios
 * Process the deferred bios