diff options
author | Eric Dumazet <[email protected]> | 2022-11-18 19:19:09 +0000 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2022-11-30 13:17:52 -0800 |
commit | 9d40c84cf5bcb5b1d124921ded2056d76be7640d (patch) | |
tree | 1b935a074c4996bba2aa89067e41d2acbcd2aa7d /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 483c26ff63f42e8898ed43aca0b9953bc91f0cd4 (diff) |
net: devinet: Reduce refcount before grace period
Currently, the inetdev_destroy() function waits for an RCU grace period
before decrementing the refcount and freeing memory. This causes a delay
with a new RCU configuration that tries to save power, which results in the
network interface disappearing later than expected. The resulting delay
causes test failures on ChromeOS.
Refactor the code such that the refcount is freed before the grace period
and memory is freed after. With this a ChromeOS network test passes that
does 'ip netns del' and polls for an interface disappearing, now passes.
Reported-by: Joel Fernandes (Google) <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Joel Fernandes (Google) <[email protected]>
Cc: David Ahern <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Hideaki YOSHIFUJI <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions