Following up on the discussion at https://www.spinics.net/lists/netdev/msg442859.html - make rds_tcp_accept_one() call sock_create_lite() - add a WARN_ON() to sock_graft()
Tested by running an infinite while() loop that does (module-load; rds-stress; module-unload) and monitors TCP slabinfo while the test is running. Sowmini Varadhan (2): rds: tcp: use sock_create_lite() to create the accept socket net/sock: add WARN_ON(parent->sk) in sock_graft() include/net/sock.h | 1 + net/rds/tcp_listen.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)