Re: [PATCH net-next v5 01/10] net: team: Annotate reads and writes for mixed lock accessed values
From: Jiri Pirko
Date: Tue Apr 07 2026 - 07:56:25 EST
Mon, Apr 06, 2026 at 05:03:37AM +0200, marcharvey@xxxxxxxxxx wrote:
>The team_port's "index" and the team's "en_port_count" are read in
>the hot transmit path, but are only written to when holding the rtnl
>lock.
>
>Use READ_ONCE() for all lockless reads of these values, and use
>WRITE_ONCE() for all writes.
>
>Signed-off-by: Marc Harvey <marcharvey@xxxxxxxxxx>
>---
>Changes in v5:
>- None
>
>Changes in v4:
>- None
>
>Changes in v3:
>- None
>
>Changes in v2:
>- None
Nit: I don't think you need to add such record when there is no change.
Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>