Skip to content

mm,tcp: provide mmap_hook to solve lockdep issue

Eric Dumazet linux-api linux-fsdevel linux-mm lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm: provide a mmap_hook infrastructureinclude/linux/fs.h mm/util.c+24 -10 replies
2/4net: implement sock_mmap_hook()include/linux/net.h net/socket.c+10 -00 replies
3/4tcp: provide tcp_mmap_hook()include/net/tcp.h net/ipv4/af_inet.c net/ipv4/tcp.c +1 more+25 -30 replies
4/4tcp: mmap: move the skb cleanup to tcp_mmap_hook()net/ipv4/tcp.c+11 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/4] mm,tcp: provide mmap_hook to solve lockdep issue

This patch series provide a new mmap_hook to fs willing to grab a mutex before mm->mmap_sem is taken, to ensure lockdep sanity.

This hook allows us to shorten tcp_mmap() execution time (while mmap_sem is held), and improve multi-threading scalability.

Eric Dumazet (4):
mm: provide a mmap_hook infrastructure
net: implement sock_mmap_hook()
tcp: provide tcp_mmap_hook()
tcp: mmap: move the skb cleanup to tcp_mmap_hook()

 include/linux/fs.h  |  6 ++++++
 include/linux/net.h |  1 +
 include/net/tcp.h   |  1 +
 mm/util.c           | 19 ++++++++++++++++++-
 net/ipv4/af_inet.c  |  1 +
 net/ipv4/tcp.c      | 39 ++++++++++++++++++++++++++++++---------
 net/ipv6/af_inet6.c |  1 +
 net/socket.c        |  9 +++++++++
 8 files changed, 67 insertions(+), 10 deletions(-)
Signature · 1 line
2.17.0.484.g0c8726318c-goog