From bcc4964c20644cac27be867ab4aa361fcc974961 Mon Sep 17 00:00:00 2001 From: komaln Date: Fri, 11 Jan 2008 05:36:44 +0000 Subject: [PATCH] b= 14184 r= Wangdi, Nathan to add mdc "stats" file --- lustre/mdc/mdc_request.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index b836665..9c25c40 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -1194,7 +1194,8 @@ static int mdc_setup(struct obd_device *obd, obd_count len, void *buf) if (rc) GOTO(err_close_lock, rc); lprocfs_mdc_init_vars(&lvars); - lprocfs_obd_setup(obd, lvars.obd_vars); + if (lprocfs_obd_setup(obd, lvars.obd_vars) == 0) + ptlrpc_lprocfs_register_obd(obd); rc = obd_llog_init(obd, obd, 0, NULL, NULL); if (rc) { @@ -1295,6 +1296,7 @@ static int mdc_cleanup(struct obd_device *obd) OBD_FREE(cli->cl_setattr_lock, sizeof (*cli->cl_setattr_lock)); OBD_FREE(cli->cl_close_lock, sizeof (*cli->cl_close_lock)); + ptlrpc_lprocfs_unregister_obd(obd); lprocfs_obd_cleanup(obd); ptlrpcd_decref(); -- 1.8.3.1