netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: defer cgroups init to accept()
@ 2017-10-09  4:44 Eric Dumazet
  2017-10-09  4:44 ` [PATCH net-next 1/2] net: memcontrol: defer call to mem_cgroup_sk_alloc() Eric Dumazet
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Eric Dumazet @ 2017-10-09  4:44 UTC (permalink / raw)
  To: David S . Miller
  Cc: netdev, Eric Dumazet, Eric Dumazet, Johannes Weiner, Tejun Heo,
	John Sperbeck

After TCP 3WHS became lockless, we should not attempt cgroup games
from sk_clone_lock() since listener/cgroup might be already gone.

Move this business to inet_csk_accept() where we have
the guarantee both parent and child exist.

Many thanks to John Sperbeck for spotting these issues

Eric Dumazet (2):
  net: memcontrol: defer call to mem_cgroup_sk_alloc()
  net: defer call to cgroup_sk_alloc()

 kernel/cgroup/cgroup.c          | 11 -----------
 mm/memcontrol.c                 | 15 ---------------
 net/core/sock.c                 |  8 +++++---
 net/ipv4/inet_connection_sock.c |  6 ++++++
 4 files changed, 11 insertions(+), 29 deletions(-)

-- 
2.14.2.920.gcf0c67979c-goog

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

end of thread, other threads:[~2017-10-10  3:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09  4:44 [PATCH net-next 0/2] net: defer cgroups init to accept() Eric Dumazet
2017-10-09  4:44 ` [PATCH net-next 1/2] net: memcontrol: defer call to mem_cgroup_sk_alloc() Eric Dumazet
2017-10-09  4:44 ` [PATCH net-next 2/2] net: defer call to cgroup_sk_alloc() Eric Dumazet
2017-10-09  4:47 ` [PATCH net-next 0/2] net: defer cgroups init to accept() Eric Dumazet
2017-10-10  3:55   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).