Re: [PATCH] nwfilter: reorder locks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/26/2011 03:19 PM, Eric Blake wrote:
On 05/11/2011 02:36 PM, Stefan Berger wrote:
This patch reorders the locks for the nwfilter updates and the access
the nwfilter objects. In the case that the IP address learning thread
was instantiating filters while an update happened, the previous order
lead to a deadlock.

I am also adding a text file describing the locking order of the
nwfilter subsystem.

Signed-off-by: Stefan Berger<stefanb@xxxxxxxxxx>

---
  src/conf/nwfilter_conf.c       |    9 ++++----
  src/nwfilter/locking.txt       |   45
Hmm.  We have daemon/THREADING.txt, src/qemu/THREADS.txt, and now
src/nwfilter/locking.txt.

Let's pick a single name for all 3 (THREADS.txt is my favorite - it's
shortest, and by being ALL-CAPS, it sorts first in the directory for
when you need it, and does not interfere with .c files for when you
don't want to be bothered by it).

I think you can be pre-approved to push an independent patch that
trivially renames THREADING.txt to THREADS.txt, plus the Makefile.am
fallout.

Also, you need to list your new file in src/Makefile.am.

ACK with those changes.
I pushed the code part now, will do the text later.

   Stefan


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]