Whamcloud - gitweb
Branch HEAD
authortianzy <tianzy>
Fri, 3 Jul 2009 04:47:09 +0000 (04:47 +0000)
committertianzy <tianzy>
Fri, 3 Jul 2009 04:47:09 +0000 (04:47 +0000)
fix quota spurious message
b=19898
i=tianzy
i=panda

lustre/quota/quota_interface.c

index 0f6e7c2..1a8076b 100644 (file)
@@ -478,7 +478,7 @@ static int quota_chk_acq_common(struct obd_device *obd, const unsigned int id[],
                         l_wait_event(waitq, 0, &lwi);
                 }
 
                         l_wait_event(waitq, 0, &lwi);
                 }
 
-                if (rc < 0 || cycle % 10 == 2) {
+                if (rc < 0 || cycle % 10 == 0) {
                         spin_lock(&last_print_lock);
                         if (last_print == 0 ||
                             cfs_time_before((last_print + cfs_time_seconds(30)),
                         spin_lock(&last_print_lock);
                         if (last_print == 0 ||
                             cfs_time_before((last_print + cfs_time_seconds(30)),