]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: remove static flush_delay variable
authorDenis V. Lunev <den@openvz.org>
Sun, 6 Jul 2008 02:02:06 +0000 (19:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Jul 2008 02:02:06 +0000 (19:02 -0700)
commit2d77275d487939d1fb8721acf29fc21705560f4f
tree54e035641e7640b1b1d49fd2fc94d503540274c5
parent71c8348cdc90fed867567c6cd80f33e2b59ea087
ipv4: remove static flush_delay variable

flush delay is used as an external storage for net.ipv4.route.flush sysctl
entry. It is write-only.

The ctl_table->data for this entry is used once. Fix this case to point
to the stack to remove global variable. Do this to avoid additional
variable on struct net in the next patch.

Possible race (as it was before) accessing this local variable is removed
using flush_mutex.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c