From da6279b59d84b7fcc61384123739e4dd1d68c3a6 Mon Sep 17 00:00:00 2001 From: NymanRobin Date: Thu, 25 Jul 2024 13:29:27 +0300 Subject: [PATCH] cephfs: correct the id for cephfs locks There was a discrepancy between the objectId when creating the lock and when releasing the lock this caused every lock to hang. Signed-off-by: NymanRobin --- internal/cephfs/nodeserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cephfs/nodeserver.go b/internal/cephfs/nodeserver.go index cfeefa0bd67..9b46e846cc6 100644 --- a/internal/cephfs/nodeserver.go +++ b/internal/cephfs/nodeserver.go @@ -151,7 +151,7 @@ func maybeUnlockFileEncryption( } defer ioctx.Destroy() - res, err := ioctx.LockExclusive(volOptions.VolID, lockName, lockCookie, lockDesc, lockDuration, &flags) + res, err := ioctx.LockExclusive(string(volID), lockName, lockCookie, lockDesc, lockDuration, &flags) if res != 0 { switch res { case -int(syscall.EBUSY):