Re: [PATCH net-next v2 2/2] net: airoha: Use u64_stats_t with u64_stats_sync properly

From: Jakub Kicinski

Date: Sun Jan 25 2026 - 19:35:24 EST


On Mon, 26 Jan 2026 06:07:50 +0800 David Yang wrote:
> On 64bit arches, struct u64_stats_sync is empty and provides no help
> against load/store tearing. Convert to u64_stats_t to ensure atomic
> operations.

The driver takes a spin lock over the very expensive series
of register reads and then drops out to copy the just read
values? Just move the readers under the spinlock?