[ovs-dev] [PATCH 2/4] rculist: Use ovsrcu_set() when poisoning.
Jarno Rajahalme
jrajahalme at nicira.com
Tue Jun 9 22:25:08 UTC 2015
Should not use ovsrcu_set_hidden() when the pointer may have been
visible to other threads already.
Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
---
lib/rculist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rculist.c b/lib/rculist.c
index 61a03d0..db2ebf8 100644
--- a/lib/rculist.c
+++ b/lib/rculist.c
@@ -23,5 +23,5 @@ rculist_poison__(struct rculist *list)
OVS_NO_THREAD_SAFETY_ANALYSIS
{
list->prev = RCULIST_POISON;
- ovsrcu_set_hidden(&list->next, RCULIST_POISON);
+ ovsrcu_set(&list->next, RCULIST_POISON);
}
--
1.7.10.4
More information about the dev
mailing list