From: jxiong Date: Thu, 15 Oct 2009 02:07:16 +0000 (+0000) Subject: b=20394 X-Git-Tag: v1_9_290~23 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b03d2d7bd5f27c8dc133831771174d30d84310e9;p=fs%2Flustre-release.git b=20394 r=tappro,rread Fix an over-strict assertion --- diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 6f9cb5b..f4b9cbd 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -146,10 +146,8 @@ int filter_finish_transno(struct obd_export *exp, struct inode *inode, cpu_to_le64(last_rcvd); } oti->oti_transno = last_rcvd; - if (last_rcvd <= le64_to_cpu(lcd->lcd_last_transno)) { - spin_unlock(&filter->fo_translock); - LBUG(); - } + + LASSERT(last_rcvd >= le64_to_cpu(lcd->lcd_last_transno)); lcd->lcd_last_transno = cpu_to_le64(last_rcvd); lcd->lcd_pre_versions[0] = cpu_to_le64(oti->oti_pre_version); lcd->lcd_last_xid = cpu_to_le64(oti->oti_xid);