summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/loader.go
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2021-06-03 13:15:39 -0700
committergVisor bot <gvisor-bot@google.com>2021-06-03 13:18:43 -0700
commit758713f4c1b789495435a166167f231991828b46 (patch)
tree9a56f22710d72822cd109586fe871b2eb459d791 /runsc/boot/loader.go
parentddcd17399b1c1083a132772702d516c154815680 (diff)
Initialize metrics at init
Avoids a race condition at kernel initialization. Updates #6057. PiperOrigin-RevId: 377357723
Diffstat (limited to 'runsc/boot/loader.go')
-rw-r--r--runsc/boot/loader.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go
index b73ac101f..f11208345 100644
--- a/runsc/boot/loader.go
+++ b/runsc/boot/loader.go
@@ -34,7 +34,6 @@ import (
"gvisor.dev/gvisor/pkg/fd"
"gvisor.dev/gvisor/pkg/log"
"gvisor.dev/gvisor/pkg/memutil"
- "gvisor.dev/gvisor/pkg/metric"
"gvisor.dev/gvisor/pkg/rand"
"gvisor.dev/gvisor/pkg/refs"
"gvisor.dev/gvisor/pkg/refsvfs2"
@@ -218,8 +217,6 @@ func New(args Args) (*Loader, error) {
return nil, fmt.Errorf("setting up memory usage: %w", err)
}
- metric.CreateSentryMetrics()
-
// Is this a VFSv2 kernel?
if args.Conf.VFS2 {
kernel.VFS2Enabled = true