diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-07 03:28:59 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-07 03:28:59 +0200 |
commit | 3391d92a354399bf5c2571102c918cfc5869d5ef (patch) | |
tree | 7856c47fdba32ec8647437b70bc89bd6312568a4 /src | |
parent | 0837f34f3c6ff395a7463b53713912e7e86293d5 (diff) |
ratelimiter: consistently use non-bh rcu
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ratelimiter.c | 2 | ||||
-rw-r--r-- | src/selftest/ratelimiter.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ratelimiter.c b/src/ratelimiter.c index bc24288..9c8a0c9 100644 --- a/src/ratelimiter.c +++ b/src/ratelimiter.c @@ -44,7 +44,7 @@ static void entry_free(struct rcu_head *rcu) static void entry_uninit(struct entry *entry) { hlist_del_rcu(&entry->hash); - call_rcu_bh(&entry->rcu, entry_free); + call_rcu(&entry->rcu, entry_free); } /* Calling this function with a NULL work uninits all entries. */ diff --git a/src/selftest/ratelimiter.h b/src/selftest/ratelimiter.h index 9c494a3..5b68014 100644 --- a/src/selftest/ratelimiter.h +++ b/src/selftest/ratelimiter.h @@ -80,7 +80,7 @@ bool __init ratelimiter_selftest(void) } gc_entries(NULL); - rcu_barrier_bh(); + rcu_barrier(); if (atomic_read(&total_entries)) goto err; |