summaryrefslogtreecommitdiffhomepage
path: root/pkg/amutex/BUILD
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2020-05-12 12:24:23 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-12 12:26:05 -0700
commit8dd1d5b75a95100e747b1a88e9e557d5d2c30b64 (patch)
tree9846e2c721ed9bd4d02390b23d7b26d9212b7965 /pkg/amutex/BUILD
parent06ded1c4372d4871f0581c7090957935d93cd50e (diff)
Don't call kernel.Task.Block() from netstack.SocketOperations.Write().
kernel.Task.Block() requires that the caller is running on the task goroutine. netstack.SocketOperations.Write() uses kernel.TaskFromContext() to call kernel.Task.Block() even if it's not running on the task goroutine. Stop doing that. PiperOrigin-RevId: 311178335
Diffstat (limited to 'pkg/amutex/BUILD')
-rw-r--r--pkg/amutex/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/amutex/BUILD b/pkg/amutex/BUILD
index 9612f072e..ffc918846 100644
--- a/pkg/amutex/BUILD
+++ b/pkg/amutex/BUILD
@@ -6,6 +6,7 @@ go_library(
name = "amutex",
srcs = ["amutex.go"],
visibility = ["//:sandbox"],
+ deps = ["//pkg/syserror"],
)
go_test(