ipv4: remove flush_mutex from ipv4_sysctl_rtcache_flush
authorDenis V. Lunev <den@openvz.org>
Tue, 8 Jul 2008 10:05:28 +0000 (03:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2008 10:05:28 +0000 (03:05 -0700)
commit81c684d12ddc05bba4953e36e9cdd5939dde344b
tree397ffc2a3e00f07d1cdda8707cf36bf3ca43268a
parent2c693610fe923764fe41b846fb86938a2010da6e
ipv4: remove flush_mutex from ipv4_sysctl_rtcache_flush

It is possible to avoid locking at all in ipv4_sysctl_rtcache_flush by
defining local ctl_table on the stack.

The patch is based on the suggestion from Eric W. Biederman.

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