[ovs-dev] [PATCH] dpif-netdev: Add thread safety annotation to sorted_poll_list.
Ilya Maximets
i.maximets at samsung.com
Mon Feb 11 17:35:41 UTC 2019
'sorted_poll_list()' uses the 'pmd->poll_list' that should be
guarded by 'pmd->port_mutex'.
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
lib/dpif-netdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index 914b2bb8b..34f2d2b07 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -1109,6 +1109,7 @@ compare_poll_list(const void *a_, const void *b_)
static void
sorted_poll_list(struct dp_netdev_pmd_thread *pmd, struct rxq_poll **list,
size_t *n)
+ OVS_REQUIRES(pmd->port_mutex)
{
struct rxq_poll *ret, *poll;
size_t i;
--
2.17.1
More information about the dev
mailing list