avoid dobule RLock() in cpumanager

This commit is contained in:
choury 2018-04-12 19:44:07 +08:00
parent a048ca888a
commit c1b19fce90

View File

@ -56,9 +56,6 @@ func (s *stateMemory) GetDefaultCPUSet() cpuset.CPUSet {
}
func (s *stateMemory) GetCPUSetOrDefault(containerID string) cpuset.CPUSet {
s.RLock()
defer s.RUnlock()
if res, ok := s.GetCPUSet(containerID); ok {
return res
}