Re: [PATCH net-next 0/2] net: defer cgroups init to accept()

2017-10-09 Thread David Miller
From: Eric Dumazet Date: Sun, 8 Oct 2017 21:47:49 -0700 > On Sun, Oct 8, 2017 at 9:44 PM, Eric Dumazet wrote: >> 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() w

Re: [PATCH net-next 0/2] net: defer cgroups init to accept()

2017-10-08 Thread Eric Dumazet
On Sun, Oct 8, 2017 at 9:44 PM, Eric Dumazet wrote: > 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. > > Ma

[PATCH net-next 0/2] net: defer cgroups init to accept()

2017-10-08 Thread Eric Dumazet
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 Dumaze