summaryrefslogtreecommitdiff
path: root/tests/test-ovsdb.c
diff options
context:
space:
mode:
authorAdrian Moreno <amorenoz@redhat.com>2022-12-05 09:41:21 +0100
committerIlya Maximets <i.maximets@ovn.org>2022-12-06 16:29:18 +0100
commit793709a856a8342abe1c594c94a2a55de8e349b4 (patch)
treef0e0ea4d337c0f8859a51ad93799df873f553533 /tests/test-ovsdb.c
parentabb9d3482e5586d69c8f962f2a01beadd2bffba8 (diff)
downloadopenvswitch-793709a856a8342abe1c594c94a2a55de8e349b4.tar.gz
rculist: Use rculist_back_protected to access prev.
The .prev member of a rculist should not be used directly by users because it's not rcu-safe. A convenient fake mutex (rculist_fake_mutex) helps ensuring that in conjunction with clang's thread safety extensions. Only writers with exclusive access to the rculist should access .prev via some of the provided *_protected() accessors. Use rculist_back_protected() in REVERSE_PROTECTED iterators to avoid clang's compilation warning. Acked-by: Mike Pattrick <mkp@redhat.com> Signed-off-by: Adrian Moreno <amorenoz@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'tests/test-ovsdb.c')
0 files changed, 0 insertions, 0 deletions