Commit 51305499 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUGroupVerifyDisks: Use node allocation lock

See comment in code.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarHelga Velroyen <>
parent 9fa08c84
......@@ -3685,6 +3685,12 @@ class LUGroupVerifyDisks(NoHooksLU):
locking.LEVEL_INSTANCE: [],
locking.LEVEL_NODEGROUP: [],
locking.LEVEL_NODE: [],
# This opcode is acquires all node locks in a group. LUClusterVerifyDisks
# starts one instance of this opcode for every group, which means all
# nodes will be locked for a short amount of time, so it's better to
# acquire the node allocation lock as well.
locking.LEVEL_NODE_ALLOC: locking.ALL_SET,
def DeclareLocks(self, level):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment