Commit 14769de9 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Paul E. McKenney

vmalloc,rcu: Convert call_rcu(rcu_free_va) to kfree_rcu()

The rcu callback rcu_free_va() just calls a kfree(),
so we use kfree_rcu() instead of the call_rcu(rcu_free_va).
Signed-off-by: default avatarLai Jiangshan <>
Signed-off-by: default avatarPaul E. McKenney <>
Cc: Andrew Morton <>
Cc: Namhyung Kim <>
Cc: David Rientjes <>
Reviewed-by: default avatarJosh Triplett <>
parent d4ee9aa3
......@@ -452,13 +452,6 @@ overflow:
return ERR_PTR(-EBUSY);
static void rcu_free_va(struct rcu_head *head)
struct vmap_area *va = container_of(head, struct vmap_area, rcu_head);
static void __free_vmap_area(struct vmap_area *va)
......@@ -491,7 +484,7 @@ static void __free_vmap_area(struct vmap_area *va)
if (va->va_end > VMALLOC_START && va->va_end <= VMALLOC_END)
vmap_area_pcpu_hole = max(vmap_area_pcpu_hole, va->va_end);
call_rcu(&va->rcu_head, rcu_free_va);
kfree_rcu(va, rcu_head);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment