cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] qdiskd: Fix bad timer check - RHEL6
@ 2011-03-17 16:34 Lon Hohberger
  2011-03-17 22:42 ` Fabio M. Di Nitto
  0 siblings, 1 reply; 2+ messages in thread
From: Lon Hohberger @ 2011-03-17 16:34 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Resolves: rhbz#688154

Signed-off-by: Lon Hohberger <lhh@redhat.com>
Tested-by: Masanari Iida <masanari_iida@hp.com>
---
 cman/qdisk/score.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cman/qdisk/score.c b/cman/qdisk/score.c
index 572464d..3ca531f 100644
--- a/cman/qdisk/score.c
+++ b/cman/qdisk/score.c
@@ -86,7 +86,8 @@ fork_heuristic(struct h_data *h, struct timespec *now)
 	}
 
 	if (now->tv_sec < h->nextrun.tv_sec ||
-	    now->tv_nsec < h->nextrun.tv_nsec)
+	    ((now->tv_sec == h->nextrun.tv_sec) &&
+	     (now->tv_nsec < h->nextrun.tv_nsec)))
 		return 0;
 
 	h->nextrun.tv_sec = now->tv_sec + h->interval;
-- 
1.7.3.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Cluster-devel] [PATCH] qdiskd: Fix bad timer check - RHEL6
  2011-03-17 16:34 [Cluster-devel] [PATCH] qdiskd: Fix bad timer check - RHEL6 Lon Hohberger
@ 2011-03-17 22:42 ` Fabio M. Di Nitto
  0 siblings, 0 replies; 2+ messages in thread
From: Fabio M. Di Nitto @ 2011-03-17 22:42 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Both rhel5 and 6 ACK.

Fabio

On 03/17/2011 05:34 PM, Lon Hohberger wrote:
> Resolves: rhbz#688154
> 
> Signed-off-by: Lon Hohberger <lhh@redhat.com>
> Tested-by: Masanari Iida <masanari_iida@hp.com>
> ---
>  cman/qdisk/score.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/cman/qdisk/score.c b/cman/qdisk/score.c
> index 572464d..3ca531f 100644
> --- a/cman/qdisk/score.c
> +++ b/cman/qdisk/score.c
> @@ -86,7 +86,8 @@ fork_heuristic(struct h_data *h, struct timespec *now)
>  	}
>  
>  	if (now->tv_sec < h->nextrun.tv_sec ||
> -	    now->tv_nsec < h->nextrun.tv_nsec)
> +	    ((now->tv_sec == h->nextrun.tv_sec) &&
> +	     (now->tv_nsec < h->nextrun.tv_nsec)))
>  		return 0;
>  
>  	h->nextrun.tv_sec = now->tv_sec + h->interval;



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-17 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-17 16:34 [Cluster-devel] [PATCH] qdiskd: Fix bad timer check - RHEL6 Lon Hohberger
2011-03-17 22:42 ` Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).