]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8383c5ad925531b0a6ebb56356c918aaf03b1071
tree3a442b265c3494072d4cdf15c8d3a38ada33a734
parent6578b0dc758f308588c3b7b82b54f67fce15284c
[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