]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio_net: Remove u64_stats_update_begin()/end() for stats fetch
authorLi RongQing <lirongqing@baidu.com>
Fri, 21 Jun 2024 09:45:52 +0000 (17:45 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Jun 2024 23:42:26 +0000 (16:42 -0700)
commitd891317fe4fbe5a85522dccb66d3a159915d7983
treedf633060dea409c7d233f13faa2983bd7a32a921
parentc4532232fa2a4f8d9b9a88135a666545157f3d13
virtio_net: Remove u64_stats_update_begin()/end() for stats fetch

This place is fetching the stats, u64_stats_update_begin()/end()
should not be used, and the fetcher of stats is in the same context
as the updater of the stats, so don't need any protection

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Link: https://lore.kernel.org/20240621094552.53469-1-lirongqing@baidu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/virtio_net.c