]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Syncronize the teardown of rules with the thread
authorStefan Berger <stefanb@us.ibm.com>
Fri, 30 Apr 2010 12:10:12 +0000 (08:10 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 30 Apr 2010 12:10:12 +0000 (08:10 -0400)
commitebacb31fb5619bfe405107c53b9e27dc9724c29a
tree25f55b791b01e38140eabd748c6b900854d05a4e
parent59fe163f2ff0a7983a3c006e2454458c2432514e
Syncronize the teardown of rules with the thread

Introduce a function to notify the IP address learning
thread to terminate and thus release the lock on the interface.
Notify the thread before grabbing the lock on the interface
and tearing down the rules. This prevents a 'virsh destroy' to
tear down the rules that the IP address learning thread has
applied.
src/nwfilter/nwfilter_gentech_driver.c
src/nwfilter/nwfilter_learnipaddr.c
src/nwfilter/nwfilter_learnipaddr.h