1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-11 09:18:25 +03:00
lvm2/lib/locking
Milan Broz b22e0a3ecb Always use blocking lock for VGs and orphan locks.
Because we have now strong rule for lock ordering:
 - VG locks must be taken in alphabetical order
 - ORPHAN locks must be the last
vgs_locked() is now not needed.

This fixes problem with orphan locking, e.g.
vgremove VG1    |    vgremove VG2
lock(VG1)       |    lock(VG2)
lock(ORPHAN)    |    lock(ORPHAN) -> fail, non-blocking

https://bugzilla.redhat.com/show_bug.cgi?id=578413

(More similar places in code.)
2010-03-31 17:23:56 +00:00
..
.exported_symbols Pre-release cleanups. 2009-05-21 03:04:52 +00:00
cluster_locking.c Fix clvmd cluster propagation of dmeventd monitoring mode. 2010-03-26 15:40:13 +00:00
external_locking.c Pre-release cleanups. 2009-05-21 03:04:52 +00:00
file_locking.c Add possibility to handle precommitted metadata in lvmcache. 2010-01-05 16:06:42 +00:00
locking_types.h Fix bad prototype from previous checkin. 2009-07-15 05:57:11 +00:00
locking.c Always use blocking lock for VGs and orphan locks. 2010-03-31 17:23:56 +00:00
locking.h Propagate commit and revert metadata event to other nodes in cluster. 2010-01-05 16:09:33 +00:00
Makefile.in Use $(top_builddir) for inclusion of make.tmpl in Makefiles. 2010-03-04 09:51:37 +00:00
no_locking.c Move error message to locking constructor and print 2010-01-22 09:45:29 +00:00