OSDN Git Service

net: Move IP_ROUTER_ALERT out of lock_sock(sk)
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 22 Mar 2018 09:45:12 +0000 (12:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 19:12:55 +0000 (15:12 -0400)
commit0526947f9dd019da8d550ed20177585a84b3460e
tree91bb96d58072735befc89e5287a82cfd6967b22d
parent76d3e153d0d16032ab68e3b698c4df05acef48c5
net: Move IP_ROUTER_ALERT out of lock_sock(sk)

ip_ra_control() does not need sk_lock. Who are the another
users of ip_ra_chain? ip_mroute_setsockopt() doesn't take
sk_lock, while parallel IP_ROUTER_ALERT syscalls are
synchronized by ip_ra_lock. So, we may move this command
out of sk_lock.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c