mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #102088 from wzshiming/fix/pod-devices-has-pod-lock
Add the missing RLock
This commit is contained in:
		@@ -65,6 +65,8 @@ func (pdev *podDevices) size() int {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (pdev *podDevices) hasPod(podUID string) bool {
 | 
			
		||||
	pdev.RLock()
 | 
			
		||||
	defer pdev.RUnlock()
 | 
			
		||||
	_, podExists := pdev.devs[podUID]
 | 
			
		||||
	return podExists
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user