]> 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)
commit586b56b18cd89d75bb3bebbea3f78f9737ac0af9
tree823fbc6d84c559c199042d38eb645569b2c75d27
parent727f7bfa4995b79c16f836f14eea98404bb9e213
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.035867 seconds and 5 git commands to generate.