Skip to content

Commit

Permalink
[NET]: New sysctls should use __read_mostly tags
Browse files Browse the repository at this point in the history
net_msg_warn should be placed in the read_mostly section, to avoid
performance problems on SMP

Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Apr 26, 2007
1 parent e5268f1 commit 6dea649
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 6dea649

Please sign in to comment.