The patch titled dm mpath: log device name has been added to the -mm tree. Its filename is dm-mpath-log-device-name.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: dm mpath: log device name From: Edward Goggin <egoggin@xxxxxxx> Make the mapped device structure accessible to hardware handlers so error messages can include the device name. Signed-off-by: Edward Goggin <egoggin@xxxxxxx> Signed-off-by: Alasdair G Kergon <agk@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/md/dm-hw-handler.h | 1 + drivers/md/dm-mpath.c | 3 +++ drivers/md/dm.c | 1 + 3 files changed, 5 insertions(+) diff -puN drivers/md/dm-hw-handler.h~dm-mpath-log-device-name drivers/md/dm-hw-handler.h --- a/drivers/md/dm-hw-handler.h~dm-mpath-log-device-name +++ a/drivers/md/dm-hw-handler.h @@ -16,6 +16,7 @@ struct hw_handler_type; struct hw_handler { struct hw_handler_type *type; + struct mapped_device *md; void *context; }; diff -puN drivers/md/dm-mpath.c~dm-mpath-log-device-name drivers/md/dm-mpath.c --- a/drivers/md/dm-mpath.c~dm-mpath-log-device-name +++ a/drivers/md/dm-mpath.c @@ -668,6 +668,9 @@ static int parse_hw_handler(struct arg_s 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); diff -puN drivers/md/dm.c~dm-mpath-log-device-name drivers/md/dm.c --- a/drivers/md/dm.c~dm-mpath-log-device-name +++ a/drivers/md/dm.c @@ -1236,6 +1236,7 @@ void dm_put(struct mapped_device *md) free_dev(md); } } +EXPORT_SYMBOL_GPL(dm_put); /* * Process the deferred bios _ Patches currently in -mm which might be from egoggin@xxxxxxx are dm-mpath-log-device-name.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html