We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d927db9 commit e799238Copy full SHA for e799238
net/core/gen_estimator.c
@@ -90,10 +90,12 @@ static void est_timer(struct timer_list *t)
90
rate = (b_packets - est->last_packets) << (10 - est->intvl_log);
91
rate = (rate >> est->ewma_log) - (est->avpps >> est->ewma_log);
92
93
+ preempt_disable_nested();
94
write_seqcount_begin(&est->seq);
95
est->avbps += brate;
96
est->avpps += rate;
97
write_seqcount_end(&est->seq);
98
+ preempt_enable_nested();
99
100
est->last_bytes = b_bytes;
101
est->last_packets = b_packets;
0 commit comments