aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_locked.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-05-08 19:08:30 -0700
committerDave Barach <openvpp@barachs.net>2019-05-09 15:15:55 +0000
commitb7e3dba7b1b040d42b02a173b525aba77c5b02a7 (patch)
tree50742829084e5463515d84fc01ee89bcaf4edc65 /src/vcl/vcl_locked.c
parent6dd16142c92912cb4570c26b280b21f2114548dc (diff)
vls: relax copy on fork locks
Change-Id: I08cb7180364a5ef8444c9895c6d4f4842661b2a7 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vcl_locked.c')
-rw-r--r--src/vcl/vcl_locked.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vcl/vcl_locked.c b/src/vcl/vcl_locked.c
index 55391912b89..3b6817c6423 100644
--- a/src/vcl/vcl_locked.c
+++ b/src/vcl/vcl_locked.c
@@ -397,7 +397,7 @@ vls_worker_copy_on_fork (vcl_worker_t * parent_wrk)
wrk->sessions = pool_dup (parent_wrk->sessions);
wrk->session_index_by_vpp_handles =
hash_dup (parent_wrk->session_index_by_vpp_handles);
- vls_table_wlock ();
+ vls_table_rlock ();
/* *INDENT-OFF* */
pool_foreach (s, wrk->sessions, ({
@@ -405,7 +405,7 @@ vls_worker_copy_on_fork (vcl_worker_t * parent_wrk)
}));
/* *INDENT-ON* */
- vls_table_wunlock ();
+ vls_table_runlock ();
}
static void