[dm-devel] [PATCH] Fix unimportant off-by-one error in flakey target
Christophe Saout
christophe at saout.de
Fri Jan 2 15:24:01 UTC 2004
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 {
More information about the dm-devel
mailing list