From d68e426263708334945dff69b88218ed71a48033 Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Sat, 8 Jun 2019 01:22:27 +0300 Subject: Multiple files: get trivial stuff done before lock Initialize a dictionary for example seems to be prefectly fine to be done before taking a lock. Change-Id: Ib29516c4efa8f0e2b526d512beab488fcd16d2e7 updates: bz#1193929 Signed-off-by: Yaniv Kaul --- xlators/features/barrier/src/barrier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/barrier') diff --git a/xlators/features/barrier/src/barrier.c b/xlators/features/barrier/src/barrier.c index a601c7fa04f..852bbacb99d 100644 --- a/xlators/features/barrier/src/barrier.c +++ b/xlators/features/barrier/src/barrier.c @@ -729,10 +729,10 @@ barrier_dump_priv(xlator_t *this) gf_proc_dump_build_key(key, "xlator.features.barrier", "priv"); gf_proc_dump_add_section("%s", key); + gf_proc_dump_build_key(key, "barrier", "enabled"); LOCK(&priv->lock); { - gf_proc_dump_build_key(key, "barrier", "enabled"); gf_proc_dump_write(key, "%d", priv->barrier_enabled); gf_proc_dump_build_key(key, "barrier", "timeout"); gf_proc_dump_write(key, "%ld", priv->timeout.tv_sec); -- cgit