summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorVitaly Lipatov <lav@etersoft.ru>2017-01-31 21:18:05 +0300
committerVijay Bellur <vbellur@redhat.com>2017-02-03 02:22:23 -0500
commit22f02d8f1dcdf176744ab1536cb23a5fcd291243 (patch)
treea1bdc2a3a81bbd9ef57cfbbb073a82e13ad9d794 /xlators/performance
parentb4aac5d334d5102ef3b935a200502cfcd63bd12c (diff)
md-cache: initialize mdc_counter.lock
add missed LOCK_INIT to fix INCREMENT_ATOMIC on conf->mdc_counter.lock when pthread_spin_* using Change-Id: I680bd6f41e3b8a1852ed969bf6794cbf4c1ccdd4 BUG: 1417913 Signed-off-by: Vitaly Lipatov <lav@etersoft.ru> Reviewed-on: https://review.gluster.org/16515 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Niels de Vos <ndevos@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Poornima G <pgurusid@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/md-cache/src/md-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c
index 026b890cd85..eb1032b3c91 100644
--- a/xlators/performance/md-cache/src/md-cache.c
+++ b/xlators/performance/md-cache/src/md-cache.c
@@ -2983,6 +2983,7 @@ init (xlator_t *this)
GF_OPTION_INIT("cache-invalidation", conf->mdc_invalidation, bool, out);
LOCK_INIT (&conf->lock);
+ LOCK_INIT (&conf->mdc_counter.lock);
time (&conf->last_child_down);
/* If timeout is greater than 60s (default before the patch that added