From ed7ffd86a2aa146856948945f214bbeb76d6a7ff Mon Sep 17 00:00:00 2001 From: huanghua Date: Mon, 4 Sep 2006 14:41:58 +0000 Subject: [PATCH] some small fix and debug helper. --- lustre/ldlm/ldlm_lock.c | 3 +++ lustre/mdt/mdt_handler.c | 1 + lustre/obdclass/obd_mount.c | 1 + 3 files changed, 5 insertions(+) diff --git a/lustre/ldlm/ldlm_lock.c b/lustre/ldlm/ldlm_lock.c index e4e5ef3..3c21a00 100644 --- a/lustre/ldlm/ldlm_lock.c +++ b/lustre/ldlm/ldlm_lock.c @@ -1114,6 +1114,9 @@ void ldlm_reprocess_all_ns(struct ldlm_namespace *ns) { struct list_head *tmp; int i, rc; + + if (ns == NULL) + return; ENTRY; spin_lock(&ns->ns_hash_lock); diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index d838d56..a768afa 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -2297,6 +2297,7 @@ static struct lu_device *mdt_layer_setup(const struct lu_context *ctx, struct lu_device_type *ldt; struct lu_device *d; int rc; + ENTRY; /* find the type */ type = class_get_type(typename); diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 7d41ed3..20dd8c6 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -1368,6 +1368,7 @@ static void server_put_super(struct super_block *sb) LCONSOLE_WARN("server umount %s complete\n", tmpname); OBD_FREE(tmpname, tmpname_sz); + class_obd_list(); EXIT; } -- 1.8.3.1