Commit 5ed4c956 authored by Apollon Oikonomopoulos's avatar Apollon Oikonomopoulos Committed by Michael Hanselmann
Browse files

Fix lock release in TLMigrateInstance

Commit 52f33103

 introduced lock release factorization, replacing manual
lock release using utility functions. However, it broke
TLMigrateInstance due to a typo (passing the Tasklet to ReleaseLocks
instead of the parent LU). We fix this by passing the LU to

Thanks to Dan Eriksson for reporting this.
Signed-off-by: default avatarApollon Oikonomopoulos <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 2d91e6ae
......@@ -6475,7 +6475,7 @@ class TLMigrateInstance(Tasklet):
if len( == 1:
# It is safe to release locks only when we're the only tasklet
# in the LU
_ReleaseLocks(self, locking.LEVEL_NODE,
_ReleaseLocks(, locking.LEVEL_NODE,
keep=[instance.primary_node, self.target_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