]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit03e4deff4987f79c34112c5ba4eb195d4f9382b0
tree2aad6739aaa295df43253a423de73e6f0e9479bd
parent59cfa789d04c35b6c647aacf4cc89b3d4d430cfe
ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock

Just like commit 4acd4945cd1e ("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