[IPV4]: Prepare FIB core for RCU.

* RCU versions of hlist_***_rcu
* fib_alias partial rcu port just whats needed now.

Signed-off-by: Robert Olsson <Robert.Olsson@data.slu.se>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Robert Olsson
2005-08-25 13:01:03 -07:00
committed by David S. Miller
parent 3625796806
commit e5b4376074
3 changed files with 24 additions and 1 deletions

View File

@@ -854,6 +854,7 @@ failure:
return NULL;
}
/* Note! fib_semantic_match intentionally uses RCU list functions. */
int fib_semantic_match(struct list_head *head, const struct flowi *flp,
struct fib_result *res, __u32 zone, __u32 mask,
int prefixlen)
@@ -861,7 +862,7 @@ int fib_semantic_match(struct list_head *head, const struct flowi *flp,
struct fib_alias *fa;
int nh_sel = 0;
list_for_each_entry(fa, head, fa_list) {
list_for_each_entry_rcu(fa, head, fa_list) {
int err;
if (fa->fa_tos &&