Whamcloud - gitweb
Branch b1_6
authorwangdi <wangdi>
Sun, 4 Nov 2007 14:53:09 +0000 (14:53 +0000)
committerwangdi <wangdi>
Sun, 4 Nov 2007 14:53:09 +0000 (14:53 +0000)
b=13913
clear obd_llog_ctxt when free llog_ctxt.
i=shadow,green

lustre/obdclass/llog_obd.c

index 382b1f1..00e208b 100644 (file)
@@ -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);
 }