selftests/bpf: Fix race condition in enable_stats
In parallel execution mode, this test now need to use atomic operation to avoid race condition. Signed-off-by: NYucong Sun <sunyucong@gmail.com> Signed-off-by: NAndrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20211006185619.364369-7-fallentree@fb.com
Showing
想要评论请 注册 或 登录