diff options
author | Adrian Moreno <amorenoz@redhat.com> | 2022-12-05 09:41:21 +0100 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-12-06 16:21:54 +0100 |
commit | 6bc92db366631f0996c8cbae2d6e1263d437ce21 (patch) | |
tree | 0281e948f9122bc140e98ebb2d69db907b7e4567 /Documentation | |
parent | e83dad6e53f3fe04ca9c4d6972fcaa7995de2ba2 (diff) | |
download | openvswitch-6bc92db366631f0996c8cbae2d6e1263d437ce21.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 'Documentation')
0 files changed, 0 insertions, 0 deletions