summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2021-09-24 11:22:56 -0700
committergVisor bot <gvisor-bot@google.com>2021-09-24 11:25:13 -0700
commite3657847cb7edcecc3facc4c499fc0b154364487 (patch)
treefa637f1c452490a084cf26bb4680310cb35e0744 /pkg
parentb510c9846446d7f423c0531ec661c4344f96c578 (diff)
Update the comment for Task.netns
Task.netns can be accessed atomically, so Task.mu isn't needed to access it. PiperOrigin-RevId: 398773947
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/kernel/task.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/sentry/kernel/task.go b/pkg/sentry/kernel/task.go
index 2eebd1b47..b0004482c 100644
--- a/pkg/sentry/kernel/task.go
+++ b/pkg/sentry/kernel/task.go
@@ -511,8 +511,6 @@ type Task struct {
numaNodeMask uint64
// netns is the task's network namespace. netns is never nil.
- //
- // netns is protected by mu.
netns inet.NamespaceAtomicPtr
// If rseqPreempted is true, before the next call to p.Switch(),