]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit103663399b5b540d86bf8004d43237e5f40ce969
tree4b492bb3324b1ef9aed7ee39185b85bc756a36e4
parent7878923f8f0cb3ab237d401850925b70228faa3e
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