To avoid -EBUSY cases we should use 2 as default for force when
releasing the lockspace.
---
 python/bindings/dlm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/bindings/dlm.py b/python/bindings/dlm.py
index b77d374c..b592a3e4 100644
--- a/python/bindings/dlm.py
+++ b/python/bindings/dlm.py
@@ -129,7 +129,7 @@ class Lockspace:
                if not self.__ls:
                        raise DLMError(-errno.ENOMEM)
 
-       def release(self, force=0):
+       def release(self, force=2):
                if not self.__ls:
                        return
 
-- 
2.31.1

Reply via email to