]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2d39c616f509fcaa6406bcb6889e230750ccf5aa
tree91bb96d58072735befc89e5287a82cfd6967b22d
parent2cebb226091e45e22031c2da7a4d7097d2c46f10
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