Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] tcp: tcp_get_info() locking changes
@ 2016-11-04 18:54 Eric Dumazet
  2016-11-04 18:54 ` [PATCH net-next 1/2] tcp: shortcut listeners in tcp_get_info() Eric Dumazet
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Eric Dumazet @ 2016-11-04 18:54 UTC (permalink / raw)
  To: David S . Miller
  Cc: netdev, Neal Cardwell, Yuchung Cheng, Soheil Hassas Yeganeh,
	Eric Dumazet, Eric Dumazet

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-11-10  3:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-04 18:54 [PATCH net-next 0/2] tcp: tcp_get_info() locking changes Eric Dumazet
2016-11-04 18:54 ` [PATCH net-next 1/2] tcp: shortcut listeners in tcp_get_info() Eric Dumazet
2016-11-04 18:54 ` [PATCH net-next 2/2] tcp: no longer hold ehash lock while calling tcp_get_info() Eric Dumazet
2016-11-09 18:03 ` [PATCH net-next 0/2] tcp: tcp_get_info() locking changes David Miller
2016-11-09 18:58   ` Eric Dumazet
2016-11-09 19:24     ` [PATCH net-next] tcp: remove unaligned accesses from tcp_get_info() Eric Dumazet
2016-11-09 19:30       ` Soheil Hassas Yeganeh
2016-11-09 20:46       ` Yuchung Cheng
2016-11-10  3:51       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox