From 6db3565e7dce602e0353e34169ed5fd5f4530ac9 Mon Sep 17 00:00:00 2001 From: shadow Date: Fri, 5 Sep 2008 11:06:46 +0000 Subject: [PATCH] fix paralel init for llog. 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lustre/include/obd.h b/lustre/include/obd.h index 25640ed..3b671c7 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -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; -- 1.8.3.1