diff options
author | Eric Dumazet <edumazet@google.com> | 2015-04-22 16:33:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-22 22:24:59 +0200 |
commit | 79930f5892e134c6da1254389577fffb8bd72c66 (patch) | |
tree | 6a6b4cf89527383ae541fdd797d90dfc2e07c69f /kernel/sched/fair.c | |
parent | ip6_gre: use netdev_alloc_pcpu_stats() (diff) | |
download | linux-79930f5892e134c6da1254389577fffb8bd72c66.tar.xz linux-79930f5892e134c6da1254389577fffb8bd72c66.zip |
net: do not deplete pfmemalloc reserve
build_skb() should look at the page pfmemalloc status.
If set, this means page allocator allocated this page in the
expectation it would help to free other pages. Networking
stack can do that only if skb->pfmemalloc is also set.
Also, we must refrain using high order pages from the pfmemalloc
reserve, so __page_frag_refill() must also use __GFP_NOMEMALLOC for
them. Under memory pressure, using order-0 pages is probably the best
strategy.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/sched/fair.c')
0 files changed, 0 insertions, 0 deletions