[ovs-dev] [ovs-discuss] Question about using struct ofproto‘s port_by_name without lock protected
Ben Pfaff
blp at ovn.org
Tue Feb 5 00:01:21 UTC 2019
On Fri, Feb 01, 2019 at 04:23:07AM +0000, Lilijun (Jerry, Cloud Networking) wrote:
> Currently, when insert/delete/lookup the shash list struct ofproto‘s port_by_name, we have no lock to protect this list. This list was used lots of other functions.
>
> Is there something race issues? Can we make sure it's only used in the main ovs thread?
I think it's only used in the main thread. (If you see some evidence
that it's not, let's fix it!)
More information about the dev
mailing list