Commit 80ee04a4 authored by Guido Trotter's avatar Guido Trotter
Browse files

Use is_owned to determine whether to unlock

Now that is_owned is public we don't need to play games at the end of an
LU. If we're still owning anything we just release it.

Reviewed-by: imsnah
parent d4f4b3e7
......@@ -145,9 +145,7 @@ class Processor(object):
result = self._LockAndExecLU(lu, level + 1)
# We need to release the current level if we acquired any lock, or if
# we acquired the set-lock (needed_locks is None)
if lu.needed_locks[level] is None or lu.acquired_locks[level]:
if self.context.glm.is_owned(level):
result = self._LockAndExecLU(lu, level + 1)
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