projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bf4725
)
xfrm: use vmalloc_node() for percpu scratches
author
Eric Dumazet
<
[email protected]
>
Fri, 18 Oct 2013 10:54:16 +0000
(
03:54
-0700)
committer
Steffen Klassert
<
[email protected]
>
Mon, 21 Oct 2013 07:38:24 +0000
(09:38 +0200)
scratches are per cpu, we can use vmalloc_node() for proper
NUMA affinity.
Signed-off-by: Eric Dumazet <
[email protected]
>
Acked-by: Herbert Xu <
[email protected]
>
Signed-off-by: Steffen Klassert <
[email protected]
>
net/xfrm/xfrm_ipcomp.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_ipcomp.c
b/net/xfrm/xfrm_ipcomp.c
index 2906d520eea7c2b7636fc94f3a60f5131701f57d..b943c7fc5ed2d9289846cca35f01822a5d88c772 100644
(file)
--- a/
net/xfrm/xfrm_ipcomp.c
+++ b/
net/xfrm/xfrm_ipcomp.c
@@
-220,8
+220,8
@@
static void ipcomp_free_scratches(void)
static void * __percpu *ipcomp_alloc_scratches(void)
{
- int i;
void * __percpu *scratches;
+ int i;
if (ipcomp_scratch_users++)
return ipcomp_scratches;
@@
-233,7
+233,9
@@
static void * __percpu *ipcomp_alloc_scratches(void)
ipcomp_scratches = scratches;
for_each_possible_cpu(i) {
- void *scratch = vmalloc(IPCOMP_SCRATCH_SIZE);
+ void *scratch;
+
+ scratch = vmalloc_node(IPCOMP_SCRATCH_SIZE, cpu_to_node(i));
if (!scratch)
return NULL;
*per_cpu_ptr(scratches, i) = scratch;