From: Alasdair G Kergon <agk@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: dm-devel@redhat.com, linux-kernel@vger.kernel.org,
Edward Goggin <egoggin@emc.com>
Subject: [2.6.22 PATCH 09/26] dm mpath: log device name
Date: Tue, 8 May 2007 20:45:54 +0100 [thread overview]
Message-ID: <20070508194554.GP24114@agk.fab.redhat.com> (raw)
From: Edward Goggin <egoggin@emc.com>
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>
---
drivers/md/dm-hw-handler.h | 1 +
drivers/md/dm-mpath.c | 3 +++
drivers/md/dm.c | 1 +
3 files changed, 5 insertions(+)
Index: linux-2.6.21/drivers/md/dm-hw-handler.h
===================================================================
--- linux-2.6.21.orig/drivers/md/dm-hw-handler.h 2007-05-01 17:38:32.000000000 +0100
+++ linux-2.6.21/drivers/md/dm-hw-handler.h 2007-05-01 17:40:50.000000000 +0100
@@ -16,6 +16,7 @@
struct hw_handler_type;
struct hw_handler {
struct hw_handler_type *type;
+ struct mapped_device *md;
void *context;
};
Index: linux-2.6.21/drivers/md/dm-mpath.c
===================================================================
--- linux-2.6.21.orig/drivers/md/dm-mpath.c 2007-05-01 17:38:32.000000000 +0100
+++ linux-2.6.21/drivers/md/dm-mpath.c 2007-05-01 17:40:50.000000000 +0100
@@ -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);
Index: linux-2.6.21/drivers/md/dm.c
===================================================================
--- linux-2.6.21.orig/drivers/md/dm.c 2007-05-01 17:38:32.000000000 +0100
+++ linux-2.6.21/drivers/md/dm.c 2007-05-01 17:40:50.000000000 +0100
@@ -1236,6 +1236,7 @@ void dm_put(struct mapped_device *md)
free_dev(md);
}
}
+EXPORT_SYMBOL_GPL(dm_put);
/*
* Process the deferred bios
reply other threads:[~2007-05-08 19:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070508194554.GP24114@agk.fab.redhat.com \
--to=agk@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=dm-devel@redhat.com \
--cc=egoggin@emc.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®