Whamcloud - gitweb
Branch: b1_6
authorwangdi <wangdi>
Mon, 24 Dec 2007 20:15:32 +0000 (20:15 +0000)
committerwangdi <wangdi>
Mon, 24 Dec 2007 20:15:32 +0000 (20:15 +0000)
obd_set_up should also be checked in llog_cleanup.
b=14477
i=deen,adilger

lustre/ChangeLog
lustre/obdclass/llog_obd.c

index 81abad7..3aa12e0 100644 (file)
@@ -181,6 +181,14 @@ Details    : mds_open improperly used accmode to find out access mode to a
             skiplists - locks are now added to the front of the granted
             queue.
 
+Severity   : normal
+Bugzilla   : 14477
+Description: Hit ASSERTION(obd->obd_stopping == 1) failed in some setup failed
+            situation.
+Details    : In obd setup failure handler, obd_stopping will not necessarily to 
+            be 1, and obd_set_up should also be checked to make sure whether
+            obd is completely setup.
+
 --------------------------------------------------------------------------------
 
 2007-12-07         Cluster File Systems, Inc. <info@clusterfs.com>
index 00e208b..c9e9a95 100644 (file)
@@ -74,7 +74,7 @@ int __llog_ctxt_put(struct llog_ctxt *ctxt)
         obd->obd_llog_ctxt[ctxt->loc_idx] = NULL;
         spin_unlock(&obd->obd_dev_lock);
 
-        LASSERT(obd->obd_stopping == 1);
+       LASSERT(obd->obd_stopping == 1 || obd->obd_set_up == 0);
         /* cleanup the llog ctxt here */
         if (CTXTP(ctxt, cleanup))
                 rc = CTXTP(ctxt, cleanup)(ctxt);
@@ -102,7 +102,7 @@ int llog_cleanup(struct llog_ctxt *ctxt)
 
         /* sync with other llog ctxt user thread */
         spin_lock(&obd->obd_dev_lock);
-        LASSERT(obd->obd_stopping == 1);
+       LASSERT(obd->obd_stopping == 1 || obd->obd_set_up == 0);
         spin_unlock(&obd->obd_dev_lock);
 
         idx = ctxt->loc_idx;