Commit 6dea649a8a4c4b086227018c919298f988c34b30
Committed by
David S. Miller
1 parent
e5268f12f2
Exists in
master
and in
7 other branches
[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: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
net/core/utils.c
... | ... | @@ -30,9 +30,9 @@ |
30 | 30 | #include <asm/system.h> |
31 | 31 | #include <asm/uaccess.h> |
32 | 32 | |
33 | -int net_msg_cost = 5*HZ; | |
34 | -int net_msg_burst = 10; | |
35 | -int net_msg_warn = 1; | |
33 | +int net_msg_cost __read_mostly = 5*HZ; | |
34 | +int net_msg_burst __read_mostly = 10; | |
35 | +int net_msg_warn __read_mostly = 1; | |
36 | 36 | EXPORT_SYMBOL(net_msg_warn); |
37 | 37 | |
38 | 38 | /* |