Whamcloud - gitweb
fix paralel init for llog.
authorshadow <shadow>
Fri, 5 Sep 2008 11:06:46 +0000 (11:06 +0000)
committershadow <shadow>
Fri, 5 Sep 2008 11:06:46 +0000 (11:06 +0000)
make llog more smp safe.
don't write big array into journal.
fix return codes in llog_put_cat_list/llog_get_cat_list.

Branch b1_8_gate
b=16679
i=umka
i=adilger

lustre/include/obd.h

index 25640ed..3b671c7 100644 (file)
@@ -902,7 +902,6 @@ struct obd_device {
         struct list_head        obd_nid_stats;
         atomic_t                obd_refcount;
         cfs_waitq_t             obd_refcount_waitq;
-        cfs_waitq_t             obd_llog_waitq;
         struct list_head        obd_exports;
         struct list_head        obd_delayed_exports;
         int                     obd_num_exports;
@@ -918,7 +917,11 @@ struct obd_device {
         struct obd_statfs       obd_osfs;       /* locked by obd_osfs_lock */
         __u64                   obd_osfs_age;
         struct lvfs_run_ctxt    obd_lvfs_ctxt;
-        struct llog_ctxt        *obd_llog_ctxt[LLOG_MAX_CTXTS];
+
+        struct llog_ctxt       *obd_llog_ctxt[LLOG_MAX_CTXTS];
+        struct semaphore        obd_llog_alloc;
+        cfs_waitq_t             obd_llog_waitq;
+
         struct obd_device       *obd_observer;
         struct obd_notify_upcall obd_upcall;
         struct obd_export       *obd_self_export;