Re: [PATCH net-next v7 01/10] net: team: Annotate reads and writes for mixed lock accessed values
From: Kuniyuki Iwashima <kuniyu@google.com>
Date: 2026-04-10 05:55:53
Also in:
linux-kselftest, lkml
From: Kuniyuki Iwashima <kuniyu@google.com>
Date: 2026-04-10 05:55:53
Also in:
linux-kselftest, lkml
On Wed, Apr 8, 2026 at 7:59 PM Marc Harvey [off-list ref] 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. Reviewed-by: Jiri Pirko <redacted> Signed-off-by: Marc Harvey <redacted>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> fwiw, Sashiko's review is orthogonal to this patch; the comments are for the existing code before this patch.