From d52b3c2b29510673472744972adc6f31bd4917ca Mon Sep 17 00:00:00 2001 From: Geliang Tang Date: Fri, 22 Dec 2023 13:47:23 +0100 Subject: mptcp: use mptcp_set_state [ Upstream commit c693a8516429908da3ea111b0caa3c042ab1e6e9 ] This patch replaces all the 'inet_sk_state_store()' calls under net/mptcp with the new helper mptcp_set_state(). Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/460 Signed-off-by: Geliang Tang Acked-by: Paolo Abeni Reviewed-by: Matthieu Baerts Signed-off-by: Matthieu Baerts Signed-off-by: David S. Miller Stable-dep-of: e4a0fa47e816 ("mptcp: corner case locking for rx path fields initialization") Signed-off-by: Sasha Levin --- net/mptcp/subflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/mptcp/subflow.c') diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index 8c7e22a9a37b..15f456fb2897 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -427,7 +427,7 @@ void __mptcp_sync_state(struct sock *sk, int state) if (!msk->rcvspace_init) mptcp_rcv_space_init(msk, msk->first); if (sk->sk_state == TCP_SYN_SENT) { - inet_sk_state_store(sk, state); + mptcp_set_state(sk, state); sk->sk_state_change(sk); } } -- cgit v1.2.3