Merge branch 'tcp_openreq_child'
authorDavid S. Miller <[email protected]>
Fri, 18 Jan 2019 06:19:05 +0000 (22:19 -0800)
committerDavid S. Miller <[email protected]>
Fri, 18 Jan 2019 06:19:05 +0000 (22:19 -0800)
Eric Dumazet says:

====================
tcp: remove code from tcp_create_openreq_child()

tcp_create_openreq_child() is essentially cloning a listener, then
must initialize some fields that can not be inherited.

Listeners are either fresh sockets, or sockets that came through
tcp_disconnect() after a session that dirtied many fields.

By moving code to tcp_disconnect(), we can shorten time taken
to create a clone, since tcp_disconnect() operation is very
unlikely.
====================

Acked-by: Yuchung Cheng <[email protected]>
Acked-by: Soheil Hassas Yeganeh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>

Trivial merge