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

LUInstanceCreate: Release unused node locks



After iallocator ran we can release any unused node locks. Since they
must be in exclusive mode this should improve parallelization during
instance creation.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 1dd64393
......@@ -8813,6 +8813,11 @@ class LUInstanceCreate(LogicalUnit):
if self.op.iallocator is not None:
self._RunAllocator()
# Release all unneeded node locks
_ReleaseLocks(self, locking.LEVEL_NODE,
keep=filter(None, [self.op.pnode, self.op.snode,
self.op.src_node]))
#### node related checks
# check primary node
......
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