mptcp: annotate lockless access for RX path fields
authorPaolo Abeni <pabeni@redhat.com>
Fri, 2 Feb 2024 11:40:09 +0000 (12:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Feb 2024 11:18:09 +0000 (11:18 +0000)
commit9426ce476a705d13eb086d4be7c817856417816f
tree6ad72cb5ab106657089d8eb59facbac95850ae7b
parentd440a4e27acdede686b974b62a6b2b2bd7914437
mptcp: annotate lockless access for RX path fields

The following fields:

 - ack_seq
 - snd_una
 - wnd_end
 - rmem_fwd_alloc

are protected by the data lock end accessed lockless in a few
spots. Ensure ONCE annotation for write (under such lock) and for
lockless read.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c
net/mptcp/protocol.c