mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-09 18:15:49 +00:00
mptcp: avoid unneeded __mptcp_nmpc_socket() usage
[ Upstream commit6176123169] In a few spots, the mptcp code invokes the __mptcp_nmpc_socket() helper multiple times under the same socket lock scope. Additionally, in such places, the socket status ensures that there is no MP capable handshake running. Under the above condition we can replace the later __mptcp_nmpc_socket() helper invocation with direct access to the msk->subflow pointer and better document such access is not supposed to fail with WARN(). Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: David S. Miller <davem@davemloft.net> Stable-dep-of:5b825727d0("mptcp: add annotations around msk->subflow accesses") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ea9d7382d5
commit
c5ebb5cec9
1 changed files with 6 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue