> On 24 Mar 2015, at 17:03, Ben Pfaff <b...@nicira.com> wrote: > > I haven't looked at the code yet, but one restriction on > ovsrcu_synchronize() is that the current thread can't have active > pointers to any RCU-protected data (they can get freed). Is that safe > here? >
There’s one point where we call port_unref() inside a CMAP_FOR_EACH loop (without external synchronization), so your intuition is correct, we cannot use ovsrcu_synchronize() here. I guess I should just postpone everything (including netdev_close()): I did some quick testing and it doesn’t appear to introduce problems. Do you guys have a better idea? Thanks for the suggestion, Ben! Daniele _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev