|
|
d1681e |
From ef08094304905a40339fba306e64508082432ab3 Mon Sep 17 00:00:00 2001
|
|
|
d1681e |
From: Mohit Agrawal <moagrawa@redhat.com>
|
|
|
d1681e |
Date: Thu, 25 Jan 2018 10:03:09 +0530
|
|
|
d1681e |
Subject: [PATCH 141/148] rpc: Showing some unusual timer error logs during
|
|
|
d1681e |
brick stop
|
|
|
d1681e |
|
|
|
d1681e |
Solution: Update msg condition in gf_timer_call_after function
|
|
|
d1681e |
to avoid the message
|
|
|
d1681e |
|
|
|
d1681e |
> BUG: 1538427
|
|
|
d1681e |
> Change-Id: I849e8e052a8259cf977fd5e7ff3aeba52f9b5f27
|
|
|
d1681e |
> Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
|
|
|
d1681e |
> (Upstream patch link https://review.gluster.org/#/c/19320/)
|
|
|
d1681e |
> (cherry picked from commit c142d26e44436d805e476f2d13ac8726052a59c4)
|
|
|
d1681e |
|
|
|
d1681e |
BUG: 1467536
|
|
|
d1681e |
Change-Id: I849e8e052a8259cf977fd5e7ff3aeba52f9b5f27
|
|
|
d1681e |
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
|
|
|
d1681e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/129722
|
|
|
d1681e |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
d1681e |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
d1681e |
---
|
|
|
d1681e |
libglusterfs/src/timer.c | 18 +++---------------
|
|
|
d1681e |
1 file changed, 3 insertions(+), 15 deletions(-)
|
|
|
d1681e |
|
|
|
d1681e |
diff --git a/libglusterfs/src/timer.c b/libglusterfs/src/timer.c
|
|
|
d1681e |
index 3d69a9f..34dfd35 100644
|
|
|
d1681e |
--- a/libglusterfs/src/timer.c
|
|
|
d1681e |
+++ b/libglusterfs/src/timer.c
|
|
|
d1681e |
@@ -30,10 +30,11 @@ gf_timer_call_after (glusterfs_ctx_t *ctx,
|
|
|
d1681e |
gf_timer_t *trav = NULL;
|
|
|
d1681e |
uint64_t at = 0;
|
|
|
d1681e |
|
|
|
d1681e |
- if (ctx == NULL)
|
|
|
d1681e |
+ if ((ctx == NULL) || (ctx->cleanup_started))
|
|
|
d1681e |
{
|
|
|
d1681e |
gf_msg_callingfn ("timer", GF_LOG_ERROR, EINVAL,
|
|
|
d1681e |
- LG_MSG_INVALID_ARG, "invalid argument");
|
|
|
d1681e |
+ LG_MSG_INVALID_ARG, "Either ctx is NULL or"
|
|
|
d1681e |
+ " ctx cleanup started");
|
|
|
d1681e |
return NULL;
|
|
|
d1681e |
}
|
|
|
d1681e |
|
|
|
d1681e |
@@ -186,19 +187,6 @@ gf_timer_registry_init (glusterfs_ctx_t *ctx)
|
|
|
d1681e |
{
|
|
|
d1681e |
gf_timer_registry_t *reg = NULL;
|
|
|
d1681e |
|
|
|
d1681e |
- if (ctx == NULL) {
|
|
|
d1681e |
- gf_msg_callingfn ("timer", GF_LOG_ERROR, EINVAL,
|
|
|
d1681e |
- LG_MSG_INVALID_ARG, "invalid argument");
|
|
|
d1681e |
- return NULL;
|
|
|
d1681e |
- }
|
|
|
d1681e |
-
|
|
|
d1681e |
- if (ctx->cleanup_started) {
|
|
|
d1681e |
- gf_msg_callingfn ("timer", GF_LOG_INFO, 0,
|
|
|
d1681e |
- LG_MSG_CTX_CLEANUP_STARTED,
|
|
|
d1681e |
- "ctx cleanup started");
|
|
|
d1681e |
- return NULL;
|
|
|
d1681e |
- }
|
|
|
d1681e |
-
|
|
|
d1681e |
LOCK (&ctx->lock);
|
|
|
d1681e |
{
|
|
|
d1681e |
reg = ctx->timer;
|
|
|
d1681e |
--
|
|
|
d1681e |
1.8.3.1
|
|
|
d1681e |
|