]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: do not enter direct reclaim from netlink_trim()
authorEric Dumazet <edumazet@google.com>
Fri, 13 Jan 2017 17:11:22 +0000 (09:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 18:39:35 +0000 (13:39 -0500)
commit6023072f0102a517b8c3cd3ab7a24d53f2645628
tree1ca7dfe3ec605b658246e3efb24c9c8e2416e2f4
parentd8be85db69c8744f8cff55f3df9861241e927254
netlink: do not enter direct reclaim from netlink_trim()

In commit 4fcaec44cd92c ("netlink: do not enter direct reclaim from
netlink_dump()") we made sure to not trigger expensive memory reclaim.

Problem is that a bit later, netlink_trim() might be called and
trigger memory reclaim.

netlink_trim() should be best effort, and really as fast as possible.
Under memory pressure, it is fine to not trim this skb.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c