[IPV6]: Fix race in route selection.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Fri, 28 Apr 2006 22:59:15 +0000 (15:59 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 30 Apr 2006 01:33:22 +0000 (18:33 -0700)
commitc302e6d54e468ee9b1e18152e2e9da06953f3473
tree23ea6976bef7aad9a934b56714786a0d55256ec6
parente959d8121fcbfee6ec049cc617e9423d1799f2e4
[IPV6]: Fix race in route selection.

We eliminated rt6_dflt_lock (to protect default router pointer)
at 2.6.17-rc1, and introduced rt6_select() for general router selection.
The function is called in the context of rt6_lock read-lock held,
but this means, we have some race conditions when we do round-robin.

Signed-off-by; YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c