[ovs-dev] [PATCH 06/10] netlink: Make nl_dump_next() thread-safe.

Joe Stringer joestringer at nicira.com
Wed Jan 15 22:10:07 UTC 2014


On 15 January 2014 09:48, Ben Pfaff <blp at nicira.com> wrote:
>
> In the latter case, it's a (probably unlikely) race, and it does not
> appear that it is too hard to avoid, so maybe we should avoidit.
>

I agree.

Here's a concept that you could work from.  It reflects what I have in
> mind, and it compiles, but I have not tested it at all.  Feel free to
> start from it, if you like.
>

As it turns out, nl_sock_recv__() is already handling the EINTR case. I
think that bringing the helper back in makes it a bit more clear how we're
handling different error cases. I'll fill in the gaps and send a new
version for review.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20140115/f501ea1a/attachment-0003.html>


More information about the dev mailing list