use atomicbitops, not sync/atomic, in refsvfs2

Since refsvfs2 are used in netstack, we should use atomicbitops to avoid
breaking 32-bit builds.

On 64-bit builds there is no performance difference.

PiperOrigin-RevId: 439687980
This commit is contained in:
Kevin Krakauer
2022-04-05 15:16:01 -07:00
committed by gVisor bot
parent bfd3f716ab
commit 019e0c9301
18 changed files with 27 additions and 9 deletions
+1
View File
@@ -29,6 +29,7 @@ go_library(
visibility = ["//pkg/sentry:internal"],
deps = [
"//pkg/abi/linux",
"//pkg/atomicbitops",
"//pkg/context",
"//pkg/errors/linuxerr",
"//pkg/fdnotifier",