]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xen/netfront: Use u64_stats_t with u64_stats_sync properly
authorDavid Yang <mmyangfl@gmail.com>
Wed, 21 Jan 2026 08:25:46 +0000 (16:25 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 22 Jan 2026 12:00:49 +0000 (13:00 +0100)
commita2ba9902e4b932537df402494b2657bd249fcf0b
tree1018e460ececdc9b7536527737452cbb8556f68c
parentcbe38d2e52cf1798b0838e440b3d95723a56dcc2
xen/netfront: Use u64_stats_t with u64_stats_sync properly

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.

Signed-off-by: David Yang <mmyangfl@gmail.com>
Link: https://patch.msgid.link/20260121082550.2389249-1-mmyangfl@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/xen-netfront.c