]> git.baikalelectronics.ru Git - kernel.git/commit
net: Revert "ipv4: fix a deadlock in ip_ra_control"
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 22 Mar 2018 09:45:22 +0000 (12:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 19:12:56 +0000 (15:12 -0400)
commitfe1cbad39ba5c0a1146af8d4069eddc0e7ebfb84
treef4e4bbd368062c32567a24e857a27fc3ab0ecd02
parent2d39c616f509fcaa6406bcb6889e230750ccf5aa
net: Revert "ipv4: fix a deadlock in ip_ra_control"

This reverts commit f863066a5794.
Since raw_close() is used on every RAW socket destruction,
the changes made by f863066a5794 scale sadly. This clearly
seen on endless unshare(CLONE_NEWNET) test, and cleanup_net()
kwork spends a lot of time waiting for rtnl_lock() introduced
by this commit.

Previous patch moved IP_ROUTER_ALERT out of rtnl_lock(),
so we revert this patch.

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