# Re: \[RFC\] virtio\_net: add local\_bh\_disable() around u64\_stats\_update\_begin

- From: Sebastian Andrzej Siewior \<bigeasy@linutronix.de\>
- Date: 2018-10-16 18:21:48 
- List: netdev
- Page: https://ratatoskr.run/netdev/2018/10/11111919
- Thread: https://ratatoskr.run/netdev/2018/10/11111903/t.md

```text
On 2018-10-16 10:59:30 [-0700], Stephen Hemminger wrote:
> Since there already is u64_stats_update_begin_irqsave inline, why not introduce
> u64_stats_update_begin_bh which encapsulates the local_bh_disable

CPU0				CPU1
refill_work()			virtnet_receive()
 try_fill_recv()		 try_fill_recv()
  u64_stats_update_begin_bh()	  u64_stats_update_begin_bh()

both CPUs may operate on the `rq'.

Sebastian
```
