summaryrefslogtreecommitdiffhomepage
path: root/pkg/eventfd/BUILD
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2021-10-26 11:27:57 -0700
committergVisor bot <gvisor-bot@google.com>2021-10-26 11:30:21 -0700
commit2d384f761c42ef9efb7ffdbd1a4f1ca328e60eab (patch)
treede166e929bcc48ed011a3a09e6959d864ffef87b /pkg/eventfd/BUILD
parentc8d835470037be9efcad13091fb6d173c68cc0ca (diff)
Change Notify() to use unix.RawSyscall.
eventfd.Notify() uses unix.Write which will eventually call unix.Syscall which will yield the current go processor resulting in the Go scheduler parking the current goroutine till the syscall returns. But in most cases where Notify() is called there is no reason to yield as the caller probably wants to continue doing something right afterwards. Like in the case of the sharedmem endpoint which may still have more packets to write. PiperOrigin-RevId: 405693801
Diffstat (limited to 'pkg/eventfd/BUILD')
-rw-r--r--pkg/eventfd/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/eventfd/BUILD b/pkg/eventfd/BUILD
index 02407cb99..f0bed8e49 100644
--- a/pkg/eventfd/BUILD
+++ b/pkg/eventfd/BUILD
@@ -6,6 +6,7 @@ go_library(
name = "eventfd",
srcs = [
"eventfd.go",
+ "eventfd_unsafe.go",
],
visibility = ["//:sandbox"],
deps = [