diff --git a/vendor/k8s.io/kubernetes/pkg/controller/volume/attachdetach/cache/desired_state_of_world.go b/vendor/k8s.io/kubernetes/pkg/controller/volume/attachdetach/cache/desired_state_of_world.go index 20aec9df2451..68174f5f0d56 100644 --- a/vendor/k8s.io/kubernetes/pkg/controller/volume/attachdetach/cache/desired_state_of_world.go +++ b/vendor/k8s.io/kubernetes/pkg/controller/volume/attachdetach/cache/desired_state_of_world.go @@ -336,8 +336,8 @@ func (dsw *desiredStateOfWorld) VolumeExists( func (dsw *desiredStateOfWorld) SetMultiAttachError( volumeName v1.UniqueVolumeName, nodeName k8stypes.NodeName) { - dsw.RLock() - defer dsw.RUnlock() + dsw.Lock() + defer dsw.Unlock() nodeObj, nodeExists := dsw.nodesManaged[nodeName] if nodeExists {