diff --git a/pkg/controller/volume/persistentvolume/scheduler_binder_cache.go b/pkg/controller/volume/persistentvolume/scheduler_binder_cache.go index f67644f8914..96b573afa24 100644 --- a/pkg/controller/volume/persistentvolume/scheduler_binder_cache.go +++ b/pkg/controller/volume/persistentvolume/scheduler_binder_cache.go @@ -74,8 +74,8 @@ func NewPodBindingCache() PodBindingCache { } func (c *podBindingCache) GetDecisions(pod *v1.Pod) nodeDecisions { - c.rwMutex.Lock() - defer c.rwMutex.Unlock() + c.rwMutex.RLock() + defer c.rwMutex.RUnlock() podName := getPodName(pod) decisions, ok := c.bindingDecisions[podName] if !ok {