ipv6: replace write lock with read lock when get route info
authorLi RongQing <roy.qing.li@gmail.com>
Tue, 11 Sep 2012 21:59:01 +0000 (21:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2012 20:53:46 +0000 (16:53 -0400)
commit5744dd9b71c6b9df944c6a32a000d4a564a2abd7
tree5d40eb61a4152f32fa15afdfded741648cfc28c7
parentfb0af4c74f200e3c4846d91d8f2f8b265450bba7
ipv6: replace write lock with read lock when get route info

geting route info does not write rt->rt6i_table, so replace
write lock with read lock

Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c
net/ipv6/route.c