Re: [PATCH] net: tcp: close sock if net namespace is exiting

2018-01-25 Thread David Miller
From: Dan Streetman Date: Thu, 18 Jan 2018 16:14:26 -0500 > When a tcp socket is closed, if it detects that its net namespace is > exiting, close immediately and do not wait for FIN sequence. > > For normal sockets, a reference is taken to their net namespace, so it will > never exit while the s

[PATCH] net: tcp: close sock if net namespace is exiting

2018-01-18 Thread Dan Streetman
When a tcp socket is closed, if it detects that its net namespace is exiting, close immediately and do not wait for FIN sequence. For normal sockets, a reference is taken to their net namespace, so it will never exit while the socket is open. However, kernel sockets do not take a reference to the