summaryrefslogtreecommitdiffhomepage
path: root/pkg/flipcall/ctrl_futex.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-09-02 22:54:43 +0000
committergVisor bot <gvisor-bot@google.com>2021-09-02 22:54:43 +0000
commitf1555bdddeef28855b188e129a9210046fb2870f (patch)
treeded1f61c5d3f33d1aa492c50808d63382b97bdff /pkg/flipcall/ctrl_futex.go
parent2eebe530c712729af7866de15e3d6434d524f034 (diff)
parent2aeab259c4d24f87d7788fed338b64d99e0865ec (diff)
Merge release-20210823.0-49-g2aeab259c (automated)
Diffstat (limited to 'pkg/flipcall/ctrl_futex.go')
-rw-r--r--pkg/flipcall/ctrl_futex.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/flipcall/ctrl_futex.go b/pkg/flipcall/ctrl_futex.go
index 5d2ee4018..99410628f 100644
--- a/pkg/flipcall/ctrl_futex.go
+++ b/pkg/flipcall/ctrl_futex.go
@@ -121,7 +121,7 @@ func (ep *Endpoint) ctrlWaitFirst() error {
return ep.futexWaitUntilActive()
}
-func (ep *Endpoint) ctrlRoundTrip() error {
+func (ep *Endpoint) ctrlRoundTrip(mayRetainP bool) error {
if err := ep.enterFutexWait(); err != nil {
return err
}
@@ -133,6 +133,9 @@ func (ep *Endpoint) ctrlRoundTrip() error {
if err := ep.futexWakePeer(); err != nil {
return err
}
+ // Since we don't know if the peer Endpoint is in the same process as this
+ // one (in which case it may need our P to run), we allow our P to be
+ // retaken regardless of mayRetainP.
return ep.futexWaitUntilActive()
}