cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH dlm-tool 1/4] python: use force=2 as default
@ 2022-08-15 19:51 Alexander Aring
  2022-08-15 19:51 ` [Cluster-devel] [PATCH dlm-tool 2/4] libdlm: force timeout parameter to zero Alexander Aring
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexander Aring @ 2022-08-15 19:51 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-15 19:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-15 19:51 [Cluster-devel] [PATCH dlm-tool 1/4] python: use force=2 as default Alexander Aring
2022-08-15 19:51 ` [Cluster-devel] [PATCH dlm-tool 2/4] libdlm: force timeout parameter to zero Alexander Aring
2022-08-15 19:51 ` [Cluster-devel] [PATCH dlm-tool 3/4] libdlm: force unset the DLM_LSFL_TIMEWARN flag Alexander Aring
2022-08-15 19:51 ` [Cluster-devel] [PATCH dlm-tool 4/4] controld: remove timewarn handling Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).