summaryrefslogtreecommitdiffstats
path: root/lib/locking/file_locking.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2011-02-04 19:18:16 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2011-02-04 19:18:16 +0000
commitfa6a525c2d50d4f740d25ebac78f94c78618c857 (patch)
treec70d138ec9bd42553464ac687712335c4305c892 /lib/locking/file_locking.c
parentf5f6dcbc623fcef927400b3662b7cf4eb75caf98 (diff)
downloadlvm2-fa6a525c2d50d4f740d25ebac78f94c78618c857.tar.gz
lvm2-fa6a525c2d50d4f740d25ebac78f94c78618c857.tar.xz
lvm2-fa6a525c2d50d4f740d25ebac78f94c78618c857.zip
Use cluster-wide message to request device name sync
Thanks to CLVMD_CMD_SYNC_NAMES propagation fix the message passing started to work. So starts to send a message before the VG is unlocked. Removing also implicit sync in VG unlock from clmvd as now the message is delievered and processed in do_command(). Also add support for this new message into external locking and mask this event from further processing.
Diffstat (limited to 'lib/locking/file_locking.c')
-rw-r--r--lib/locking/file_locking.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/locking/file_locking.c b/lib/locking/file_locking.c
index 0c8bbed4..68b0420b 100644
--- a/lib/locking/file_locking.c
+++ b/lib/locking/file_locking.c
@@ -215,7 +215,6 @@ static int _lock_file(const char *file, uint32_t flags)
state = 'W';
break;
case LCK_UNLOCK:
- fs_unlock(); /* Wait until devices are available */
return _release_lock(file, 1);
default:
log_error("Unrecognised lock type: %d", flags & LCK_TYPE_MASK);