]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0872d078801e7c6a8465cfdfc99de22574e9b85c
tree0d10190f17eea768f23c480f56c46e0166d335a1
parent7c02c5a8976d0c9f8606630923af846c8c9a278f
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: a310168c1eed ("netconf: advertise mc_forwarding status")
Fixes: eaff1800a5a0 ("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