mptcp: pm: simplify select_local_address()
authorPaolo Abeni <pabeni@redhat.com>
Thu, 10 Dec 2020 22:25:05 +0000 (14:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Dec 2020 01:30:06 +0000 (17:30 -0800)
commit1bc7327b5fea60328bf72cd702eca1defa2a5655
treef6ef59871ad5dc111775d7caa3a689ef4096f571
parent50c504a20a754ca37b5e1f4e660cd687769a7dca
mptcp: pm: simplify select_local_address()

There is no need to unconditionally acquire the join list
lock, we can simply splice the join list into the subflow
list and traverse only the latter.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c