Re: [PATCH net-next 0/4] u64_stats: Introduce u64_stats_copy()
From: Sabrina Dubroca <sd@queasysnail.net>
Date: 2026-01-22 11:02:36
Also in:
bridge, lkml
From: Sabrina Dubroca <sd@queasysnail.net>
Date: 2026-01-22 11:02:36
Also in:
bridge, lkml
2026-01-22, 10:00:43 +0200, Ido Schimmel wrote:
On Wed, Jan 21, 2026 at 06:21:05PM +0100, Sabrina Dubroca wrote:quoted
No direct instances using memcpy, but do we need to also full structs copied within a u64_stats_fetch_begin/u64_stats_fetch_retry loop?My understanding is that we cannot rely on the compiler to perform the copy in any particular way. With the suggested helper it is at least clear how the copy is done.
Ok, thanks. So those (and a few more similar things in drivers/net) should also be switched to this new helper. -- Sabrina