[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] [PATCH] Fix unimportant off-by-one error in flakey target



Hi,

here is a small and stupid bugfix for the flakey target. :)
A down interval of one second didn't work.

--- linux.orig/drivers/md/dm-flakey.c	2004-01-02 17:05:37.000000000 +0100
+++ linux/drivers/md/dm-flakey.c	2004-01-02 22:19:00.936797056 +0100
@@ -89,7 +89,7 @@
 	/* are we alive ? */
 	elapsed = (jiffies - f->start_time) / HZ;
 	elapsed %= (f->up_interval + f->down_interval);
-	if (elapsed > f->up_interval)
+	if (elapsed >= f->up_interval)
 		return -EIO;
 
 	else {




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]