Re: [PATCH net 2/2] net: Use u64_stats_fetch_begin_irq() for stats fetch.

From
Simon Horman <hidden>
Date
2022-08-29 09:55:48
Also in
linux-arm-kernel, linux-wireless, stable
Reply to
Sebastian Andrzej Siewior, 2022-08-25
On Thu, Aug 25, 2022 at 01:36:45PM +0200, Sebastian Andrzej Siewior wrote:
On 32bit-UP u64_stats_fetch_begin() disables only preemption. If the
reader is in preemptible context and the writer side
(u64_stats_update_begin*()) runs in an interrupt context (IRQ or
softirq) then the writer can update the stats during the read operation.
This update remains undetected.

Use u64_stats_fetch_begin_irq() to ensure the stats fetch on 32bit-UP
are not interrupted by a writer. 32bit-SMP remains unaffected by this
change.
Thanks,

for the NFP driver portion:

Reviewed-by: Simon Horman <redacted>
Thread (6 messages) 6 messages, 4 authors, last reply 2022-08-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help