Commit 46cde471 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

mcpu: Start locking at correct level

Commit 8716b1db

 added a new lock level, LEVEL_NODE_ALLOC. It is ahead of
LEVEL_INSTANCE. The latter was hardcoded in mcpu to be locked right
after the BGL, effectively ignoring LEVEL_NODE_ALLOC.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarGuido Trotter <>
parent 51f2650e
......@@ -468,7 +468,8 @@ class Processor(object):
assert lu.needed_locks is not None, "needed_locks not set by LU"
result = self._LockAndExecLU(lu, locking.LEVEL_INSTANCE, calc_timeout)
result = self._LockAndExecLU(lu, locking.LEVEL_CLUSTER + 1,
if self._ec_id:
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