]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'tcp_openreq_child'
authorDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 06:19:05 +0000 (22:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 06:19:05 +0000 (22:19 -0800)
commita69618a6a7915b4c2d70f9995d6f5e3b32d8939b
treee432d56cc0b4e01edc9e755e231143a6afea0613
parentb8a9f504c1af3e67dfc0786b46efc059809b3ced
parent394c5dfb08f1d4b43047bbd45d0d145e6d07a1cc
Merge branch 'tcp_openreq_child'

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 <ycheng@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>