[IPV6]: Acquire addrconf_hash_lock for read in addrconf_verify(...)
authorYan Zheng <yanzheng@21cn.com>
Sun, 20 Nov 2005 21:42:20 +0000 (13:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Nov 2005 21:42:20 +0000 (13:42 -0800)
commit5d5780df23537ad0db72267fe11103d2c23d9b2a
tree3a442b265c3494072d4cdf15c8d3a38ada33a734
parent4909724b5dee8fb7c52bbe90afa40c65b17be9eb
[IPV6]: Acquire addrconf_hash_lock for read in addrconf_verify(...)

addrconf_verify(...) only traverse address hash table when
addrconf_hash_lock is held for writing, and it may hold
addrconf_hash_lock for a long time. So I think it's better to acquire
addrconf_hash_lock for reading instead of writing

Signed-off-by: Yan Zheng <yanzheng@21cn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c