[Cluster-devel] [PATCH dlm-tool 2/4] libdlm: force timeout parameter to zero

Alexander Aring aahringo at redhat.com
Mon Aug 15 19:51:46 UTC 2022


This patch forces to disable the timeout parameter for libdlm users as
this feature is now deprecated and we will just unset it even if the
user sets it to a value.
---
 libdlm/libdlm.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libdlm/libdlm.c b/libdlm/libdlm.c
index ebfba457..fbdf9a09 100644
--- a/libdlm/libdlm.c
+++ b/libdlm/libdlm.c
@@ -807,8 +807,6 @@ static int ls_lock_v6(dlm_lshandle_t ls,
 
 	if (xid)
 		req->i.lock.xid = *xid;
-	if (timeout)
-		req->i.lock.timeout = *timeout;
 
 	if (flags & LKF_CONVERT) {
 		req->i.lock.namelen = 0;
-- 
2.31.1



More information about the Cluster-devel mailing list