summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-02 02:40:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-02 02:45:53 +0200
commit1a3a3c90e61fc5c8e72461eacb16818c98372fcd (patch)
tree28369b0440c942dfdcb029627d6b5990b73983b4
parent98bdbe54510835f3f4460a1739a6162241992912 (diff)
ratelimiter: wait for destruction, not for read_unlock
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/ratelimiter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ratelimiter.c b/src/ratelimiter.c
index 9ad451e..c4281e1 100644
--- a/src/ratelimiter.c
+++ b/src/ratelimiter.c
@@ -183,7 +183,7 @@ void ratelimiter_uninit(void)
cancel_delayed_work_sync(&gc_work);
gc_entries(NULL);
- synchronize_rcu();
+ rcu_barrier();
kvfree(table_v4);
#if IS_ENABLED(CONFIG_IPV6)
kvfree(table_v6);