addrconf: reduce unnecessary atomic allocations
authorCong Wang <xiyou.wangcong@gmail.com>
Wed, 22 Aug 2018 19:58:34 +0000 (12:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Aug 2018 04:42:07 +0000 (21:42 -0700)
commite500c6d349f7f36120886841c6f057ce248b48b2
tree1df21d8dad79ab78420f7d22f96efe750bd30559
parent191672ca07a7c10c3b84d01019a33d59b4317997
addrconf: reduce unnecessary atomic allocations

All the 3 callers of addrconf_add_mroute() assert RTNL
lock, they don't take any additional lock either, so
it is safe to convert it to GFP_KERNEL.

Same for sit_add_v4_addrs().

Cc: David Ahern <dsahern@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c