summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@google.com>2026-05-02 03:13:04 +0000
committerJakub Kicinski <kuba@kernel.org>2026-05-05 17:47:05 -0700
commit173a79f6966ac5c6f1bd16f0556637ad4146a79c (patch)
treeae6d8090a4c94d03c232e25cb3f272abefce95d1 /include/linux/debugobjects.h
parentbc773b15eb19ae3e27dd3a3377f2fe006ce5f382 (diff)
fou: Store struct sock in struct fou.
fou does not need to access struct socket itself in the fast path; it only reads struct sock, and struct socket is only used for tunnel setup and teardown. Let's store struct sock directly in struct fou. fou_release() frees struct fou with kfree_rcu(), so fou no longer needs synchronize_rcu() in udp_tunnel_sock_release(). Note that the error path in fou_create() looks buggy; once the tunnel is set up and fou_add_to_port_list() fails, struct fou should be freed with kfree_rcu() _after_ udp_tunnel_sock_release(). Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260502031401.3557229-12-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions