diff --git a/internal/cephfs/nodeserver.go b/internal/cephfs/nodeserver.go index c53d418f4..df8ad2456 100644 --- a/internal/cephfs/nodeserver.go +++ b/internal/cephfs/nodeserver.go @@ -217,11 +217,8 @@ func (ns *NodeServer) NodePublishVolume( targetPath := req.GetTargetPath() volID := req.GetVolumeId() - if acquired := ns.VolumeLocks.TryAcquire(volID); !acquired { - util.ErrorLog(ctx, util.VolumeOperationAlreadyExistsFmt, volID) - return nil, status.Errorf(codes.Aborted, util.VolumeOperationAlreadyExistsFmt, volID) - } - defer ns.VolumeLocks.Release(volID) + // Considering kubelet make sure the stage and publish operations + // are serialized, we dont need any extra locking in nodePublish if err := util.CreateMountPoint(targetPath); err != nil { util.ErrorLog(ctx, "failed to create mount point at %s: %v", targetPath, err)