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

LUOobCommand: Always declare NAL in shared mode

Doing so avoids triggering an assertion in mcpu which cross-checks the
node lock and node allocation lock acquisition mode.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 1d645825
......@@ -4814,10 +4814,11 @@ class LUOobCommand(NoHooksLU):
locking.LEVEL_NODE: lock_names,
self.share_locks[locking.LEVEL_NODE_ALLOC] = 1
if not self.op.node_names:
# Acquire node allocation lock only if all nodes are affected
self.needed_locks[locking.LEVEL_NODE_ALLOC] = locking.ALL_SET
self.share_locks[locking.LEVEL_NODE_ALLOC] = 1
def CheckPrereq(self):
"""Check prerequisites.
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