From 67e18c53984d839ac4482a7d2be9f60a6be4c33d Mon Sep 17 00:00:00 2001 From: wangdi Date: Sun, 4 Nov 2007 14:53:09 +0000 Subject: [PATCH] Branch b1_6 b=13913 clear obd_llog_ctxt when free llog_ctxt. i=shadow,green --- lustre/obdclass/llog_obd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 1.8.3.1