]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 19 Jan 2017 08:26:21 +0000 (16:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Jan 2017 16:08:53 +0000 (11:08 -0500)
commitd2691ba9e88ed9f3d2244a8e0d98fb86e62456e8
tree2aad6739aaa295df43253a423de73e6f0e9479bd
parent0800427e396d5da5b7f32fe1c02247f5a2cc3be9
ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock

Just like commit b770e9a1eb35 ("ipv6: addrconf: Avoid calling
netdevice notifiers with RCU read-side lock"), it is unnecessary
to make addrconf_disable_change() use RCU iteration over the
netdev list, since it already holds the RTNL lock, or we may meet
Illegal context switch in RCU read-side critical section.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c