From: Eric W. Biederman Date: Thu, 3 Dec 2009 20:22:55 +0000 (-0800) Subject: net: Allow fib_rule_unregister to batch X-Git-Tag: v2.6.33-rc1~388^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9c5158ac26affd5d8ce006521bdfb7148090e18;p=pandora-kernel.git net: Allow fib_rule_unregister to batch Refactor the code so fib_rules_register always takes a template instead of the actual fib_rules_ops structure that will be used. This is required for network namespace support so 2 out of the 3 callers already do this, it allows the error handling to be made common, and it allows fib_rules_unregister to free the template for hte caller. Modify fib_rules_unregister to use call_rcu instead of syncrhonize_rcu to allw multiple namespaces to be cleaned up in the same rcu grace period. Signed-off-by: Eric W. Biederman Signed-off-by: David S. Miller --- Reading git-diff-tree failed