From: wangdi Date: Sun, 4 Nov 2007 14:53:09 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~1033 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=67e18c53984d839ac4482a7d2be9f60a6be4c33d;p=fs%2Flustre-release.git Branch b1_6 b=13913 clear obd_llog_ctxt when free llog_ctxt. i=shadow,green --- diff --git a/lustre/obdclass/llog_obd.c b/lustre/obdclass/llog_obd.c index 382b1f1..00e208b 100644 --- a/lustre/obdclass/llog_obd.c +++ b/lustre/obdclass/llog_obd.c @@ -150,8 +150,10 @@ int llog_setup(struct obd_device *obd, int index, struct obd_device *disk_obd, if (op->lop_setup) rc = op->lop_setup(obd, index, disk_obd, count, logid); - if (rc) + if (rc) { llog_ctxt_destroy(ctxt); + obd->obd_llog_ctxt[index] = NULL; + } out: RETURN(rc); }