mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 12:34:02 +02:00
mptcp: remove unneeded READ_ONCE() annotation
The subflow->fully_established flag is always written under the subflow
socket lock. Reading such value under the same lock does not require any
ONCE annotation.
Fixes: 581c8cbfa9 ("mptcp: annotate data-races around subflow->fully_established")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260908-net-mptcp-misc-fixes-7-3-rc1-v2-10-df1de70348b6@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f968190c0b
commit
caa4a79f74
|
|
@ -530,7 +530,7 @@ static bool mptcp_established_options_mp(struct sock *sk, struct sk_buff *skb,
|
|||
return false;
|
||||
|
||||
/* MPC/MPJ needed only on 3rd ack packet, DATA_FIN and TCP shutdown take precedence */
|
||||
if (READ_ONCE(subflow->fully_established) || snd_data_fin_enable ||
|
||||
if (subflow->fully_established || snd_data_fin_enable ||
|
||||
subflow->snd_isn != TCP_SKB_CB(skb)->seq ||
|
||||
sk->sk_state != TCP_ESTABLISHED)
|
||||
return false;
|
||||
|
|
@ -981,7 +981,7 @@ static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk,
|
|||
/* here we can process OoO, in-window pkts, only in-sequence 4th ack
|
||||
* will make the subflow fully established
|
||||
*/
|
||||
if (likely(READ_ONCE(subflow->fully_established))) {
|
||||
if (likely(subflow->fully_established)) {
|
||||
/* on passive sockets, check for 3rd ack retransmission
|
||||
* note that msk is always set by subflow_syn_recv_sock()
|
||||
* for mp_join subflows
|
||||
|
|
|
|||
|
|
@ -3886,7 +3886,7 @@ static void schedule_3rdack_retransmission(struct sock *ssk)
|
|||
struct tcp_sock *tp = tcp_sk(ssk);
|
||||
unsigned long timeout;
|
||||
|
||||
if (READ_ONCE(mptcp_subflow_ctx(ssk)->fully_established))
|
||||
if (mptcp_subflow_ctx(ssk)->fully_established)
|
||||
return;
|
||||
|
||||
/* reschedule with a timeout above RTT, as we must look only for drop */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user