]> git.baikalelectronics.ru Git - kernel.git/commit
net/tcp_fastopen: remove tcp_fastopen_ctx_lock
authorEric Dumazet <edumazet@google.com>
Mon, 19 Jul 2021 10:11:07 +0000 (03:11 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Jul 2021 10:07:07 +0000 (12:07 +0200)
commitff12e2c3b3009bd0b72e51141c4c902e7ab6124f
treee52a6fb74dce8895a5314955875df8b9287f94f7
parent99316ef425e9032d3f44d76c46362376c692fa69
net/tcp_fastopen: remove tcp_fastopen_ctx_lock

Remove the (per netns) spinlock in favor of xchg() atomic operations.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Wei Wang <weiwan@google.com>
Link: https://lore.kernel.org/r/20210719101107.3203943-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/netns/ipv4.h
net/ipv4/tcp_fastopen.c
net/ipv4/tcp_ipv4.c