[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1478285672-3195-1-git-send-email-edumazet@google.com>
Date: Fri, 4 Nov 2016 11:54:30 -0700
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>,
Neal Cardwell <ncardwell@...gle.com>,
Yuchung Cheng <ycheng@...gle.com>,
Soheil Hassas Yeganeh <soheil@...gle.com>,
Eric Dumazet <edumazet@...gle.com>,
Eric Dumazet <eric.dumazet@...il.com>
Subject: [PATCH net-next 0/2] tcp: tcp_get_info() locking changes
This short series prepares tcp_get_info() for more detailed infos.
In order to not slow down fast path, our goal is to use the normal
socket spinlock instead of custom synchronization.
All we need to ensure is that tcp_get_info() is not called with
ehash lock, which might dead lock, since packet processing would acquire
the spinlocks in reverse way.
Eric Dumazet (2):
tcp: shortcut listeners in get_tcp_info()
tcp: no longer hold ehash lock while calling tcp_get_info()
include/linux/tcp.h | 2 --
net/ipv4/inet_diag.c | 48 +++++++++++++++++++++++++++++--------------
net/ipv4/tcp.c | 57 ++++++++++++++++++++++++++++------------------------
net/ipv4/tcp_input.c | 4 ----
4 files changed, 64 insertions(+), 47 deletions(-)
--
2.8.0.rc3.226.g39d4020
Powered by blists - more mailing lists