mptcp: cleanup accept and poll
authorPaolo Abeni <pabeni@redhat.com>
Fri, 7 Jan 2022 00:20:17 +0000 (16:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Jan 2022 11:27:07 +0000 (11:27 +0000)
commit71ba088ce0aa87370b18a1d35cd742f352d51c24
tree4b492bb3324b1ef9aed7ee39185b85bc756a36e4
parentb29fcfb54cd70caca5b11c80d8d238854938884a
mptcp: cleanup accept and poll

After the previous patch,  msk->subflow will never be deleted during
the whole msk lifetime. We don't need anymore to acquire references to
it in mptcp_stream_accept() and we can use the listener subflow accept
queue to simplify mptcp_poll() for listener socket.

Overall this removes a lock pair and 4 more atomic operations per
accept().

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c