tcp: tcp_wfree() refactoring
authorEric Dumazet <edumazet@google.com>
Thu, 10 Nov 2022 19:02:39 +0000 (19:02 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 12 Nov 2022 05:38:03 +0000 (21:38 -0800)
commitb548b17a93fd18357a5a6f535c10c1e68719ad32
treedf083306587ff26447b10e04a91821bb9425b176
parentfac30731b9b8a0b7580bf73ddd25035ef0a733a5
tcp: tcp_wfree() refactoring

Use try_cmpxchg() (instead of cmpxchg()) in a more readable way.

oval = smp_load_acquire(&sk->sk_tsq_flags);
do {
...
} while (!try_cmpxchg(&sk->sk_tsq_flags, &oval, nval));

Reduce indentation level.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20221110190239.3531280-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_output.c