]> 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)
commit0e00f54dab7ab77ceb4eb050cd268f0bdc0c10aa
tree2aad6739aaa295df43253a423de73e6f0e9479bd
parent6e57f625b223ca7e7f0fec3b89c4d60a65fd7e35
ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock

Just like commit 566d57d77541 ("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