]> sourceware.org Git - lvm2.git/commit
Never ever use distributed lock for LV in non-clustered VG.
authorMilan Broz <mbroz@redhat.com>
Wed, 9 Dec 2009 19:00:16 +0000 (19:00 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 9 Dec 2009 19:00:16 +0000 (19:00 +0000)
commit85fabd8116d82a421db0690bf6d78b74732795fd
tree0ef830e80e68045e1a167f423ba4386f7769f8ad
parent4b3efd353740ddd0159ae3901ba2e170879c87f2
Never ever use distributed lock for LV in non-clustered VG.

The LV locks make sense only for clustered LVs.

Properly check cluster flag and never issue cluster lock here.

There are several places in code, where it is already checked, this
patch add this check to all needed calls.

In previous code the lock behaviour was inconsistent,
for example, the pre/post callback can take lock even for local volume,
but deactivate call do not released this lock and it remains held forever.

The local LV lock request now just let run the underlying activation code
on local node, the same process like in local locking.

(Again, this is important for new mirror repair calls, here for local
mirrors but with cluster locking enabled.)
WHATS_NEW
daemons/clvmd/lvm-functions.c
This page took 0.028444 seconds and 5 git commands to generate.