]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: serialize execution of scripts with ebtables cmds
authorStefan Berger <stefanb@us.ibm.com>
Fri, 13 Aug 2010 19:47:10 +0000 (15:47 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 13 Aug 2010 19:47:10 +0000 (15:47 -0400)
commitbed3a217f6faf1e668760feb82d83b05faa311ca
treee014da0ddf4ddb79857bc95063c9dedf4a9a448f
parent8b4eedc8cdda89dbdb19d08d757d160fda107d62
nwfilter: serialize execution of scripts with ebtables cmds

While testing the SIGHUP handling and reloading of the nwfilter driver, I found that when the filters are rebuilt and mutlipe threads handled the individual interfaces, concurrently running multiple external bash scripts causes strange failures even though the executed ebtables commands are working on different tables for different interfaces. I cannot say for sure where the concurrency problems are caused, but introducing this lock definitely helps.
src/nwfilter/nwfilter_ebiptables_driver.c