diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2020-07-13 13:33:09 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-13 13:35:32 -0700 |
commit | 6994f4d5912ce9dc9233aebe9902892824904b71 (patch) | |
tree | 00857a92a208dbf3d5a3086882d46c0a869983df /pkg/tcpip/stack/iptables_targets.go | |
parent | b8d3d09bd16f1f6d684ce2ca6f16109567cb0fc2 (diff) |
[vfs2] Make gofer metadata atomics consistent
For accessing metadata fields:
- If metadataMu is locked, we can access without atomics
- If metadataMu is unlocked, we should use atomics
For mutating metadata fields:
- Always lock metadataMu and use atomics.
There were some instances of inconsistencies which have been fixed.
PiperOrigin-RevId: 321022895
Diffstat (limited to 'pkg/tcpip/stack/iptables_targets.go')
0 files changed, 0 insertions, 0 deletions