ipv6: Use state_lock to protect ifa state
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 May 2010 22:54:18 +0000 (15:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 22:54:18 +0000 (15:54 -0700)
commit4c5ff6a6fe794f102479db998c69054319279e3c
tree07e2e4de160e3eb2dbbb3f7749314cd556671826
parente9d3e084975869754d16f639378675c353560be9
ipv6: Use state_lock to protect ifa state

This patch makes use of the new state_lock to synchronise between
updates to the ifa state.  This fixes the issue where a remotely
triggered address deletion (through DAD failure) coincides with a
local administrative address deletion, causing certain actions to
be performed twice incorrectly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c