提交 6dea649a 编写于 作者: E Eric Dumazet 提交者: David S. Miller

[NET]: New sysctls should use __read_mostly tags

net_msg_warn should be placed in the read_mostly section, to avoid
performance problems on SMP
Signed-off-by: NEric Dumazet <dada1@cosmosbay.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e5268f12
......@@ -30,9 +30,9 @@
#include <asm/system.h>
#include <asm/uaccess.h>
int net_msg_cost = 5*HZ;
int net_msg_burst = 10;
int net_msg_warn = 1;
int net_msg_cost __read_mostly = 5*HZ;
int net_msg_burst __read_mostly = 10;
int net_msg_warn __read_mostly = 1;
EXPORT_SYMBOL(net_msg_warn);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册