From: Fabio M. Di Nitto <fdinitto@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] qdiskd: Fix bad timer check - RHEL6
Date: Thu, 17 Mar 2011 23:42:33 +0100 [thread overview]
Message-ID: <4D828E59.30301@redhat.com> (raw)
In-Reply-To: <1300379676-24816-1-git-send-email-lhh@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;
prev parent reply other threads:[~2011-03-17 22:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D828E59.30301@redhat.com \
--to=fdinitto@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).