Fix: take RCU read-side lock within hash table functions
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Aug 2015 22:02:21 +0000 (18:02 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 14 Aug 2015 22:10:39 +0000 (18:10 -0400)
commitf250226cca7c22ed6d6080cd21f2acbc23ba6deb
tree029a0ba0a48c51888835310487e70515d9545286
parent9de0e15cc3a0a24f05aefc347e602c5c3f40b728
Fix: take RCU read-side lock within hash table functions

After review, a great deal of caller sites miss the RCU read-side lock
when using the hash table modification functions. This is a case where
having a slight performance degradation might be worthwhile if we can be
a bit more stability. So instead of playing whack-a-mole, add the RCU
read-side lock in the hash table modification functions to ensure
protection from ABA.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/hashtable/hashtable.c
This page took 0.024575 seconds and 4 git commands to generate.