Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-3031 ldlm: disconnect speedup
[fs/lustre-release.git]
/
lustre
/
obdclass
/
class_obd.c
diff --git
a/lustre/obdclass/class_obd.c
b/lustre/obdclass/class_obd.c
index
672c90e
..
20ea553
100644
(file)
--- a/
lustre/obdclass/class_obd.c
+++ b/
lustre/obdclass/class_obd.c
@@
-488,6
+488,10
@@
static int __init init_obdclass(void)
{
int i, err;
+ spin_lock_init(&obd_stale_export_lock);
+ INIT_LIST_HEAD(&obd_stale_exports);
+ atomic_set(&obd_stale_export_num, 0);
+
LCONSOLE_INFO("Lustre: Build Version: "BUILD_VERSION"\n");
spin_lock_init(&obd_types_lock);
@@
-622,6
+626,7
@@
static void cleanup_obdclass(void)
class_handle_cleanup();
class_exit_uuidlist();
obd_zombie_impexp_stop();
+ LASSERT(list_empty(&obd_stale_exports));
memory_leaked = obd_memory_sum();