diff options
| author | 2025-10-17 13:37:12 +0000 | |
|---|---|---|
| committer | 2025-10-21 15:56:21 +0200 | |
| commit | 3ff9bcecce83f12169ab3e42671bd76554ca521a (patch) | |
| tree | db362844461ecef320cd31a69cd3121b533c8618 /scripts/Makefile.thinlto | |
| parent | Merge branch 'net-airoha-add-an7583-ethernet-controller-support' (diff) | |
net: avoid extra access to sk->sk_wmem_alloc in sock_wfree()
UDP TX packets destructor is sock_wfree().
It suffers from a cache line bouncing in sock_def_write_space_wfree().
Instead of reading sk->sk_wmem_alloc after we just did an atomic RMW
on it, use __refcount_sub_and_test() to get the old value for free,
and pass the new value to sock_def_write_space_wfree().
Add __sock_writeable() helper.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20251017133712.2842665-1-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
