Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3f23e9a
)
VPP-83: fix collateral damage
40/1440/1
author
Dave Barach
<dave@barachs.net>
Tue, 7 Jun 2016 21:35:38 +0000
(17:35 -0400)
committer
Dave Barach
<dave@barachs.net>
Tue, 7 Jun 2016 21:36:12 +0000
(17:36 -0400)
Accidentally removed pthread_mutex_unlock (&root_rp->mutex) in the
dead client scan case. Oops. Bad idea.
Change-Id: I488b7e39d01c267052785bd346e8846351db90a9
Signed-off-by: Dave Barach <dave@barachs.net>
vlib-api/vlibmemory/memory_shared.c
patch
|
blob
|
history
diff --git
a/vlib-api/vlibmemory/memory_shared.c
b/vlib-api/vlibmemory/memory_shared.c
index
71150fd
..
1684acf
100644
(file)
--- a/
vlib-api/vlibmemory/memory_shared.c
+++ b/
vlib-api/vlibmemory/memory_shared.c
@@
-287,6
+287,7
@@
int vl_map_shmem (char *region_name, int is_vlib)
/* Clean up the root region client list */
pthread_mutex_lock (&root_rp->mutex);
svm_client_scan_this_region_nolock (root_rp);
+ pthread_mutex_unlock (&root_rp->mutex);
}
pthread_mutex_unlock (&vlib_rp->mutex);
am->vlib_rp = vlib_rp;