Using a fixed set of locks, then we don't need to free unused locks
anymore. See kubernetes/kubernetes/pull/66442 for discussions.
This commit is contained in:
@@ -59,7 +59,7 @@ const (
|
||||
|
||||
func (plugin *localVolumePlugin) Init(host volume.VolumeHost) error {
|
||||
plugin.host = host
|
||||
plugin.volumeLocks = keymutex.NewKeyMutex()
|
||||
plugin.volumeLocks = keymutex.NewHashed(0)
|
||||
plugin.recorder = host.GetEventRecorder()
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user