Commit c1b19fce authored by choury's avatar choury

avoid dobule RLock() in cpumanager

parent a048ca88
...@@ -56,9 +56,6 @@ func (s *stateMemory) GetDefaultCPUSet() cpuset.CPUSet { ...@@ -56,9 +56,6 @@ func (s *stateMemory) GetDefaultCPUSet() cpuset.CPUSet {
} }
func (s *stateMemory) GetCPUSetOrDefault(containerID string) cpuset.CPUSet { func (s *stateMemory) GetCPUSetOrDefault(containerID string) cpuset.CPUSet {
s.RLock()
defer s.RUnlock()
if res, ok := s.GetCPUSet(containerID); ok { if res, ok := s.GetCPUSet(containerID); ok {
return res return res
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment