]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5cf12a19ea710ddfdbacfcae7afe7a3e8c1cee66
tree397ffc2a3e00f07d1cdda8707cf36bf3ca43268a
parentc4d36adba9f46067c76ff3421f189bf73b330179
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