]> sourceware.org Git - lvm2.git/commit
Fix wrong use of LCK_WRITE
authorMilan Broz <mbroz@redhat.com>
Thu, 19 Aug 2010 23:26:31 +0000 (23:26 +0000)
committerMilan Broz <mbroz@redhat.com>
Thu, 19 Aug 2010 23:26:31 +0000 (23:26 +0000)
commitfbc263659bc75ab311a108add6b336af841fe4c1
tree823fbc6d84c559c199042d38eb645569b2c75d27
parent8c8a7cbba412ff4e12fc1d93e3d08173d1e07653
Fix wrong use of LCK_WRITE

In all top vg read functions only LCK_VG_READ/WRITE can be used.
All other vg lock definitions are low-level backend machinery.

Moreover, LCK_WRITE cannot be tested through bitmask.
This patch fixes these mistakes.

For _recover_vg() we do not need lock_flags, it can be only
two of above and we always upgrading to LCK_VG_WRITE lock there.
(N.B. that code is racy)

There is no functional change in code (despite wrong masking
it produces correct bits:-)
WHATS_NEW
daemons/clvmd/clvmd-singlenode.c
lib/metadata/metadata.c
This page took 0.040946 seconds and 5 git commands to generate.