From 79ca3015ac904ccecd31aeb75287cbf84727abc3 Mon Sep 17 00:00:00 2001 From: shadow Date: Mon, 29 Sep 2008 06:34:15 +0000 Subject: [PATCH] fix more llog locking problems. Branch b1_8_gate b=17157 i=johann i=wangdi --- lustre/obdclass/llog_obd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/obdclass/llog_obd.c b/lustre/obdclass/llog_obd.c index 77163a8..cb3fe72 100644 --- a/lustre/obdclass/llog_obd.c +++ b/lustre/obdclass/llog_obd.c @@ -410,12 +410,17 @@ int llog_cat_initialize(struct obd_device *obd, int idx, int rc; ENTRY; + mutex_down(&obd->obd_llog_cat_process); rc = llog_get_cat_list(obd, obd, name, idx, 1, &idarray); if (rc) { CERROR("rc: %d\n", rc); GOTO(out, rc); } + CDEBUG(D_INFO, "init llog for %s/%d - catid "LPX64"/"LPX64"/%x\n", + uuid->uuid, idx, idarray.lci_logid.lgl_oid, + idarray.lci_logid.lgl_ogr, idarray.lci_logid.lgl_ogen); + rc = obd_llog_init(obd, obd, 1, &idarray, uuid); if (rc) { CERROR("rc: %d\n", rc); @@ -429,6 +434,8 @@ int llog_cat_initialize(struct obd_device *obd, int idx, } out: + mutex_up(&obd->obd_llog_cat_process); + RETURN(rc); } EXPORT_SYMBOL(llog_cat_initialize); -- 1.8.3.1