| Message ID | 20090618072300.GA6243@ff.dom.local |
|---|---|
| State | Accepted, archived |
| Delegated to: | David Miller |
| Headers | show |
From: Jarek Poplawski <jarkao2@gmail.com> Date: Thu, 18 Jun 2009 07:23:00 +0000 > ipv4: Fix fib_trie rebalancing, part 3 > > Alas my fix, part 2, has one if too much again... (We can't repeat the > same test because tn is different.) > > Reported-by: Yan Zheng <zheng.yan@oracle.com> > Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> Since I didn't push patch #2 out yet I'll combine it with this one. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff -Nurp a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c --- a/net/ipv4/fib_trie.c 2009-06-18 06:53:24.000000000 +0000 +++ b/net/ipv4/fib_trie.c 2009-06-18 06:58:00.000000000 +0000 @@ -1032,8 +1032,7 @@ static void trie_rebalance(struct trie * tn = (struct tnode *)resize(t, (struct tnode *)tn); rcu_assign_pointer(t->trie, (struct node *)tn); - if (IS_TNODE(tn)) - tnode_free_flush(); + tnode_free_flush(); return; }