]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix sk_mem_reclaim_partial()
authorEric Dumazet <edumazet@google.com>
Fri, 15 May 2015 19:39:25 +0000 (12:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2015 02:45:48 +0000 (22:45 -0400)
commit9ab0a8d3c73dac0a7bdf81daa752b2b8a4b97e27
treedc47be63f82d9c6be6d193607688d10b3f78a366
parent3de4d8e95c8f89098214c0e8380b1b11b114ac5b
net: fix sk_mem_reclaim_partial()

sk_mem_reclaim_partial() goal is to ensure each socket has
one SK_MEM_QUANTUM forward allocation. This is needed both for
performance and better handling of memory pressure situations in
follow up patches.

SK_MEM_QUANTUM is currently a page, but might be reduced to 4096 bytes
as some arches have 64KB pages.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c