FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 03-17-2011, 03:34 PM
Lon Hohberger
 
Default qdiskd: Fix bad timer check - RHEL6

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
 
Old 03-17-2011, 09:42 PM
"Fabio M. Di Nitto"
 
Default qdiskd: Fix bad timer check - RHEL6

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;
 

Thread Tools




All times are GMT. The time now is 01:28 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org