tcp: tcp_get_info() locking changes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tcp: shortcut listeners in tcp_get_info()net/ | +24 | 0 replies | |
| 2/2 | tcp: no longer hold ehash lock while calling tcp_get_info()include/ net/ net/ +1 more | +42 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Soheil Hassas Yeganeh | Neal Cardwell | Yuchung Cheng |
|---|---|---|---|
| Series | A-b | A-b | |
| 1/2 | A-b | A-b | |
| 2/2 | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [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(-)
Signature · 1 line
2.8.0.rc3.226.g39d4020