Re: [PATCH net] net: hns3: fix data race in hns3_fetch_stats
From: patchwork-bot+netdevbpf
Date: Tue Jan 20 2026 - 21:42:40 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 20 Jan 2026 00:07:37 +0800 you wrote:
> In hns3_fetch_stats(), ring statistics, protected by u64_stats_sync, are
> read and accumulated in ignorance of possible u64_stats_fetch_retry()
> events. These statistics are already accumulated by
> hns3_ring_stats_update(). Fix this by reading them into a temporary
> buffer first.
>
> Fixes: b20d7fe51e0d ("net: hns3: add some statitics info to tx process")
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>
>
> [...]
Here is the summary with links:
- [net] net: hns3: fix data race in hns3_fetch_stats
https://git.kernel.org/netdev/net/c/748a81c8ceda
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html