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:08:18 +0000 (18:08 -0400)
commitf0251fa4e9128ce25ceecfe9e247f691773bbf2a
tree141c493af714abda4a928a7600fdedfd60aa942e
parent6b4bf9f4231910876a7bd25f7c5b231a9a57bab5
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.034648 seconds and 4 git commands to generate.