[lvm-devel] [PATCH] Always use blocking lock for VGs and orphan locks.

Alasdair G Kergon agk at redhat.com
Wed Mar 31 14:26:22 UTC 2010


On Wed, Mar 31, 2010 at 04:05:08PM +0200, Milan Broz wrote:
> 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
 
Ack.

Alasdair




More information about the lvm-devel mailing list