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

Jakub Kicinski kuba at kernel.org
Sun Jan 25 16:35:10 PST 2026


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?



More information about the Linux-mediatek mailing list