Thread (16 messages) 16 messages, 7 authors, 2024-03-06

Re: [PATCH net v3] net: stmmac: protect updates of 64-bit statistics counters

From: patchwork-bot+netdevbpf@kernel.org
Date: 2024-02-07 09:10:25
Also in: linux-sunxi, lkml, netdev, stable

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller [off-list ref]:

On Sat,  3 Feb 2024 20:09:27 +0100 you wrote:
As explained by a comment in <linux/u64_stats_sync.h>, write side of struct
u64_stats_sync must ensure mutual exclusion, or one seqcount update could
be lost on 32-bit platforms, thus blocking readers forever. Such lockups
have been observed in real world after stmmac_xmit() on one CPU raced with
stmmac_napi_poll_tx() on another CPU.

To fix the issue without introducing a new lock, split the statics into
three parts:

[...]
Here is the summary with links:
  - [net,v3] net: stmmac: protect updates of 64-bit statistics counters
    https://git.kernel.org/netdev/net/c/38cc3c6dcc09

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help