Re: [PATCH v2 net-next] rtnl: Add GFP flag argument to rtnl_unicast()

From
David Miller <davem@davemloft.net>
Date
2016-07-11 20:01:48
Reply to
Masashi Honma, 2016-07-09
From: Masashi Honma <redacted>
Date: Sat,  9 Jul 2016 12:59:04 +0900
This commit extends rtnl_unicast() to specify GFP flags.

This commit depends on Eric Dumazet's commits below.
	ipv4: do not abuse GFP_ATOMIC in inet_netconf_notify_devconf()
	ipv6: do not abuse GFP_ATOMIC in inet6_netconf_notify_devconf()

Signed-off-by: Masashi Honma <redacted>
The code is correct and optimal as-is.  There is no gain to your
changes.  gfp_any() will do the right thing.

In fact, your change makes the code more error prone because if any
of these code paths get moved into an atomic context they will break
unless somone remembers to also fix up the GFP flags.

Meanwhile with the existing use of gfp_any() it will work
transparently in such a situation.

I'm not applying this.
Thread (18 messages) 18 messages, 5 authors, last reply 2016-07-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help