[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <51113187-9601-420d-f58a-bfdbb36c4fe5@kernel.org>
Date: Wed, 2 Aug 2023 09:06:24 -0600
From: David Ahern <dsahern@...nel.org>
To: Eric Dumazet <edumazet@...gle.com>, "David S . Miller"
<davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com,
Kuniyuki Iwashima <kuniyu@...zon.com>
Subject: Re: [PATCH net 2/6] tcp_metrics: annotate data-races around
tm->tcpm_stamp
On 8/2/23 7:14 AM, Eric Dumazet wrote:
> tm->tcpm_stamp can be read or written locklessly.
>
> Add needed READ_ONCE()/WRITE_ONCE() to document this.
>
> Also constify tcpm_check_stamp() dst argument.
>
> Fixes: 51c5d0c4b169 ("tcp: Maintain dynamic metrics in local cache.")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> ---
> net/ipv4/tcp_metrics.c | 19 +++++++++++++------
> 1 file changed, 13 insertions(+), 6 deletions(-)
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists