From 21c6d11752171303785ee2d21432a6cde83d213f Mon Sep 17 00:00:00 2001 From: wangdi Date: Tue, 26 Sep 2006 17:49:54 +0000 Subject: [PATCH] Branch: b_new_cmd someone just init group llog already before we want to insert ourselves. a tmp fix and some debug info for further investigation --- lustre/obdfilter/filter.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 748b3a2..264c16a 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -2206,7 +2206,14 @@ struct obd_llogs *filter_grab_llog_for_group(struct obd_device *obd, int group, spin_lock(&filter->fo_llog_list_lock); list_for_each(cur, &filter->fo_llog_list) { nlog = list_entry(cur, struct filter_group_llog, list); - LASSERT(nlog->group != group); + if (nlog->group == group) { + CWARN("Interesting! someone already init group %d\n", + group); + spin_unlock(&filter->fo_llog_list_lock); + OBD_FREE(fglog->llogs, sizeof(*(fglog->llogs))); + OBD_FREE(fglog, sizeof(*fglog)); + RETURN(nlog->llogs); + } } list_add(&fglog->list, &filter->fo_llog_list); spin_unlock(&filter->fo_llog_list_lock); -- 1.8.3.1