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:
f1a232f
)
vcl: drop lock on segment attach failure
60/38160/3
author
Florin Coras
<fcoras@cisco.com>
Tue, 7 Feb 2023 17:01:59 +0000
(09:01 -0800)
committer
Dave Barach
<vpp@barachs.net>
Tue, 7 Feb 2023 18:19:51 +0000
(18:19 +0000)
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I3bc2c7986f492b7b7dfbc84e4893202354223790
src/vcl/vcl_private.c
patch
|
blob
|
history
diff --git
a/src/vcl/vcl_private.c
b/src/vcl/vcl_private.c
index
589380d
..
847e32c
100644
(file)
--- a/
src/vcl/vcl_private.c
+++ b/
src/vcl/vcl_private.c
@@
-435,6
+435,7
@@
vcl_segment_attach (u64 segment_handle, char *name, ssvm_segment_type_t type,
if ((rv = fifo_segment_attach (&vcm->segment_main, a)))
{
clib_warning ("svm_fifo_segment_attach ('%s') failed", name);
+ clib_rwlock_writer_unlock (&vcm->segment_table_lock);
return rv;
}
hash_set (vcm->segment_table, segment_handle, a->new_segment_indices[0]);