ipv4: Fix oops with FIB_TRIE
authorRobert Olsson <robert.olsson@its.uu.se>
Thu, 21 May 2009 22:20:59 +0000 (15:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2009 22:20:59 +0000 (15:20 -0700)
commit3ed18d76d959e5cbfa5d70c8f7ba95476582a556
tree9fbd15b820b43627440fd6961f687c30e8d4e130
parent5b5f792a6a9a2f9ae812d151ed621f72e99b1725
ipv4: Fix oops with FIB_TRIE

It seems we can fix this by disabling preemption while we re-balance the
trie. This is with the CONFIG_CLASSIC_RCU. It's been stress-tested at high
loads continuesly taking a full BGP table up/down via iproute -batch.

Note. fib_trie is not updated for CONFIG_PREEMPT_RCU

Reported-by: Andrei Popa
Signed-off-by: Robert Olsson <robert.olsson@its.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c