From 9e12eb1cf5f4bf8e2d0a912835b681224772e00a Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 2 Feb 2011 23:57:48 +0000 Subject: [PATCH] a few more comments --- lib/locking/cluster_locking.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/locking/cluster_locking.c b/lib/locking/cluster_locking.c index c9f8fbe35..4dac05f92 100644 --- a/lib/locking/cluster_locking.c +++ b/lib/locking/cluster_locking.c @@ -342,10 +342,14 @@ static int _lock_for_cluster(struct cmd_context *cmd, unsigned char clvmd_cmd, * VG locks are just that: locks, and have no side effects * so we only need to do them on the local node because all * locks are cluster-wide. + * * Also, if the lock is exclusive it makes no sense to try to * acquire it on all nodes, so just do that on the local node too. - * One exception, is that P_ locks (except VG_SYNC_NAMES) /do/ get - * distributed across the cluster because they might have side-effects. + * + * P_ locks /do/ get distributed across the cluster because they might + * have side-effects. + * + * SYNC_NAMES and VG_BACKUP use the VG name directly without prefix. */ if (clvmd_cmd == CLVMD_CMD_SYNC_NAMES) { if (flags & LCK_LOCAL) -- 2.43.5