diff options
author | Paolo Abeni <pabeni@redhat.com> | 2024-02-02 14:40:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-05 14:18:09 +0300 |
commit | d440a4e27acdede686b974b62a6b2b2bd7914437 (patch) | |
tree | 4e5de8751af89ffbb5e64d28fd95c3e248321c4f /net/mptcp/pm.c | |
parent | 1c09d7cbb57abcea66148923cef717cc7ab35704 (diff) | |
download | linux-d440a4e27acdede686b974b62a6b2b2bd7914437.tar.xz |
mptcp: annotate lockless access for the tx path
The mptcp-level TX path info (write_seq, bytes_sent, snd_nxt) are under
the msk socket lock protection, and are accessed lockless in a few spots.
Always mark the write operations with WRITE_ONCE, read operations
outside the lock with READ_ONCE and drop the annotation for read
under such lock.
To simplify the annotations move mptcp_pending_data_fin_ack() from
__mptcp_data_acked() to __mptcp_clean_una(), under the msk socket
lock, where such call would belong.
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>
Diffstat (limited to 'net/mptcp/pm.c')
0 files changed, 0 insertions, 0 deletions