diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-07-22 23:21:21 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-07-22 23:21:21 +0000 |
commit | 88d2090454461e5ef762de803fd96d6412faa254 (patch) | |
tree | 9ba80b5a6ba404cfc2d40782c36243c64ad7e971 /pkg/sentry/platform/kvm | |
parent | 19c15720f7c7b13efa97c2458df95a5ff3fea2dc (diff) | |
parent | d706922d788a1bbc9f1c917af1a08ca86488aab0 (diff) |
Merge d706922d (automated)
Diffstat (limited to 'pkg/sentry/platform/kvm')
-rw-r--r-- | pkg/sentry/platform/kvm/machine.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/platform/kvm/machine.go b/pkg/sentry/platform/kvm/machine.go index 679087e25..cc6c138b2 100644 --- a/pkg/sentry/platform/kvm/machine.go +++ b/pkg/sentry/platform/kvm/machine.go @@ -388,7 +388,10 @@ func (m *machine) Get() *vCPU { func (m *machine) Put(c *vCPU) { c.unlock() runtime.UnlockOSThread() + + m.mu.RLock() m.available.Signal() + m.mu.RUnlock() } // newDirtySet returns a new dirty set. |