From: Uladzislau Rezki (Sony) Date: Mon, 25 May 2020 21:47:54 +0000 (+0200) Subject: rcu/tiny: support vmalloc in tiny-RCU X-Git-Tag: v5.9-rc1~204^2^2^3~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64d1d06ccb1b7de245ccf781b91517f328bebd9f;p=thirdparty%2Flinux.git rcu/tiny: support vmalloc in tiny-RCU Replace kfree() with kvfree() in rcu_reclaim_tiny(). This makes it possible to release either SLAB or vmalloc objects after a GP. Reviewed-by: Joel Fernandes (Google) Signed-off-by: Uladzislau Rezki (Sony) Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c index dd572ce7c7479..4b99f7b88beec 100644 --- a/kernel/rcu/tiny.c +++ b/kernel/rcu/tiny.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "rcu.h" @@ -86,7 +87,7 @@ static inline bool rcu_reclaim_tiny(struct rcu_head *head) rcu_lock_acquire(&rcu_callback_map); if (__is_kfree_rcu_offset(offset)) { trace_rcu_invoke_kfree_callback("", head, offset); - kfree((void *)head - offset); + kvfree((void *)head - offset); rcu_lock_release(&rcu_callback_map); return true; }