diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2024-07-31 13:07:18 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-08-03 22:38:44 +0100 |
commit | 2b5afc1d5d5a33060034f0f275bc0e9c243394bb (patch) | |
tree | 2d809f255e08735908404c6f9545bed75c6b1c1e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 768e4bb6a75e3c6a034df7c67edac20bd222857e (diff) |
net: Initialise net->passive once in preinit_net().
When initialising the root netns, we set net->passive in setup_net().
However, we do it twice for non-root netns in copy_net_ns() and
setup_net().
This is because we could bypass setup_net() in copy_net_ns() if
down_read_killable() fails.
preinit_net() is a better place to put such an operation.
Let's initialise net->passive in preinit_net().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions