Thread (3 messages) flat view 3 messages, 3 authors, 2021-10-21

Re: [PATCH net-next] net: stats: Read the statistics in ___gnet_stats_copy_basic() instead of adding.

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-10-21 11:50:28
Also in: linux-next, lkml

Hello:

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

On Thu, 21 Oct 2021 11:59:19 +0200 you wrote:
Since the rework, the statistics code always adds up the byte and packet
value(s). On 32bit architectures a seqcount_t is used in
gnet_stats_basic_sync to ensure that the 64bit values are not modified
during the read since two 32bit loads are required. The usage of a
seqcount_t requires a lock to ensure that only one writer is active at a
time. This lock leads to disabled preemption during the update.

[...]
Here is the summary with links:
  - [net-next] net: stats: Read the statistics in ___gnet_stats_copy_basic() instead of adding.
    https://git.kernel.org/netdev/net-next/c/c5c6e589a8c8

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help