Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=800... Commit: 8000c70a8d28a2e79305babd8b869b73605a3349 Parent: 81d24b6bdd33e8f16c39414f8bb8485baf19a919 Author: Lon Hohberger lhh@redhat.com AuthorDate: Mon Nov 2 17:30:38 2009 -0500 Committer: Lon Hohberger lhh@redhat.com CommitterDate: Mon Nov 2 17:30:38 2009 -0500
qdiskd: Make qdiskd stop crying wolf
The I/O hang check timer in qdiskd was somehow being woken up twice on rare occasion, causing qdiskd to falsely report an I/O hang when there were no actual problems with the system.
Signed-off-by: Lon Hohberger lhh@redhat.com --- cman/qdisk/iostate.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cman/qdisk/iostate.c b/cman/qdisk/iostate.c index f195c45..0199da4 100644 --- a/cman/qdisk/iostate.c +++ b/cman/qdisk/iostate.c @@ -49,11 +49,12 @@ io_state(iostate_t state) pthread_mutex_lock(&state_mutex); main_state = state; main_incarnation++; /* it does not matter if this wraps. */ - pthread_mutex_unlock(&state_mutex);
/* Optimization: Don't signal on STATE_NONE */ if (state != STATE_NONE) pthread_cond_broadcast(&state_cond); + + pthread_mutex_unlock(&state_mutex); }
cluster-commits@lists.fedorahosted.org