LUClusterVerifyConfig: Share BGL, acquire all locks in shared mode
authorMichael Hanselmann <hansmi@google.com>
Wed, 21 Mar 2012 15:59:17 +0000 (16:59 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 22 Mar 2012 12:46:18 +0000 (13:46 +0100)
commita5485ffc5a802f8229429ff865d5043a5d846e4d
treed6a1dc970e9df967b57b95d5fc241c767ba37405
parent596b2459e2789a8ca6438e2fb553a934cc56ba0a
LUClusterVerifyConfig: Share BGL, acquire all locks in shared mode

Instead of acquiring the BGL in exclusive mode (which blocks all other
operations), we acquire all locks for groups, nodes and instances in
shared mode before verifying the configuration.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
lib/cmdlib.py