From b7c80e2b9909c0beb21b8244e235d190cbf2cc68 Mon Sep 17 00:00:00 2001 From: shadow Date: Mon, 29 Sep 2008 06:34:07 +0000 Subject: [PATCH] fix more llog locking problems. Branch b1_8_gate b=17157 i=johann i=wangdi --- lustre/mds/handler.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index cecaa18..3a9d4d1 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -2762,12 +2762,19 @@ static int mds_health_check(struct obd_device *obd) static int mds_process_config(struct obd_device *obd, obd_count len, void *buf) { struct lustre_cfg *lcfg = buf; - struct lprocfs_static_vars lvars; - int rc; + int rc = 0; - lprocfs_mds_init_vars(&lvars); + switch(lcfg->lcfg_command) { + case LCFG_PARAM: { + struct lprocfs_static_vars lvars; + lprocfs_mds_init_vars(&lvars); - rc = class_process_proc_param(PARAM_MDT, lvars.obd_vars, lcfg, obd); + rc = class_process_proc_param(PARAM_MDT, lvars.obd_vars, lcfg, obd); + break; + } + default: + break; + } return(rc); } -- 1.8.3.1