Whamcloud - gitweb
b=20394 correct check for transno value in filter_finish_transno
authorMikhail Pershin <mikhail.pershin@oracle.com>
Tue, 21 Dec 2010 07:01:38 +0000 (10:01 +0300)
committerAndrew Perepechko <andrew.perepechko@oracle.com>
Tue, 21 Dec 2010 18:13:18 +0000 (21:13 +0300)
i=tappro,johann

lustre/obdfilter/filter.c

index 79a268d..f5679b5 100644 (file)
@@ -146,8 +146,10 @@ int filter_finish_transno(struct obd_export *exp, struct inode *inode,
                         filter->fo_fsd->lsd_last_transno = cpu_to_le64(last_rcvd);
         }
         oti->oti_transno = last_rcvd;
-        if (last_rcvd <= le64_to_cpu(lcd->lcd_last_transno)) {
+        if (last_rcvd < le64_to_cpu(lcd->lcd_last_transno)) {
                 spin_unlock(&filter->fo_translock);
+                CERROR("last_rcvd ("LPU64") < lcd_last_transno ("LPU64")\n",
+                       last_rcvd, le64_to_cpu(lcd->lcd_last_transno));
                 LBUG();
         }
         lcd->lcd_last_transno = cpu_to_le64(last_rcvd);