diff options
author | Edward Goggin <egoggin@emc.com> | 2007-05-09 02:32:56 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-09 12:30:46 -0700 |
commit | 79eb885c96b5ccf8bbffd0dddc4c15a5dd436a1c (patch) | |
tree | 1bae1cea97907415f19a0009aaa8e11e63fef34c /drivers/md/dm-mpath.c | |
parent | 46b477306afcd0516924b26792c7a42f4dbfa9f0 (diff) | |
download | linux-79eb885c96b5ccf8bbffd0dddc4c15a5dd436a1c.tar.gz linux-79eb885c96b5ccf8bbffd0dddc4c15a5dd436a1c.tar.bz2 linux-79eb885c96b5ccf8bbffd0dddc4c15a5dd436a1c.zip |
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: Edward Goggin <egoggin@emc.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 3aa013506967..de54b39e6ffe 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -668,6 +668,9 @@ static int parse_hw_handler(struct arg_set *as, struct multipath *m) 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); if (r) { dm_put_hw_handler(hwht); |