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
b=20591 fix race on obd_device::md_stats
[fs/lustre-release.git]
/
lustre
/
mgs
/
mgs_handler.c
diff --git
a/lustre/mgs/mgs_handler.c
b/lustre/mgs/mgs_handler.c
index
99dd197
..
f8394cf
100644
(file)
--- a/
lustre/mgs/mgs_handler.c
+++ b/
lustre/mgs/mgs_handler.c
@@
-226,8
+226,12
@@
static int mgs_setup(struct obd_device *obd, struct lustre_cfg *lcfg)
/* Setup proc */
lprocfs_mgs_init_vars(&lvars);
/* Setup proc */
lprocfs_mgs_init_vars(&lvars);
- if (lprocfs_obd_setup(obd, lvars.obd_vars) == 0)
+ if (lprocfs_obd_setup(obd, lvars.obd_vars) == 0)
{
lproc_mgs_setup(obd);
lproc_mgs_setup(obd);
+ rc = lprocfs_alloc_md_stats(obd, LPROC_MGS_LAST);
+ if (rc)
+ GOTO(err_llog, rc);
+ }
/* Start the service threads */
mgs->mgs_service =
/* Start the service threads */
mgs->mgs_service =