ipv6: do not abuse GFP_ATOMIC in inet6_netconf_notify_devconf()
authorEric Dumazet <edumazet@google.com>
Fri, 8 Jul 2016 03:46:04 +0000 (05:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jul 2016 22:13:20 +0000 (18:13 -0400)
commit927265bc6cd6374c9bafc43408ece4e92311b149
tree0d10190f17eea768f23c480f56c46e0166d335a1
parentfa17806cde76fb1087532f07e72aa757a30e0500
ipv6: do not abuse GFP_ATOMIC in inet6_netconf_notify_devconf()

All inet6_netconf_notify_devconf() callers are in process context,
so we can use GFP_KERNEL allocations if we take care of not holding
a rwlock while not needed in ip6mr (we hold RTNL there)

Fixes: d67b8c616b48 ("netconf: advertise mc_forwarding status")
Fixes: f3a1bfb11ccb ("rtnl/ipv6: use netconf msg to advertise forwarding status")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c
net/ipv6/ip6mr.c