diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-14 23:05:36 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-17 22:33:16 -0600 |
commit | e3d5a96bb3391d12e77a9eb7baa7bae1dcad0829 (patch) | |
tree | ea9a5de9bb3c4999ba09f6e14d85cd0958d4e68f /src/peer.c | |
parent | bea17c2bd2bcc0035bd0830e2f6592930dac574e (diff) |
global: the _bh variety of rcu helpers have been unified
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -99,7 +99,7 @@ static void peer_make_dead(struct wg_peer *peer) /* Mark as dead, so that we don't allow jumping contexts after. */ WRITE_ONCE(peer->is_dead, true); - /* The caller must now synchronize_rcu_bh() for this to take effect. */ + /* The caller must now synchronize_rcu() for this to take effect. */ } static void peer_remove_after_dead(struct wg_peer *peer) @@ -171,7 +171,7 @@ void wg_peer_remove(struct wg_peer *peer) lockdep_assert_held(&peer->device->device_update_lock); peer_make_dead(peer); - synchronize_rcu_bh(); + synchronize_rcu(); peer_remove_after_dead(peer); } @@ -189,7 +189,7 @@ void wg_peer_remove_all(struct wg_device *wg) peer_make_dead(peer); list_add_tail(&peer->peer_list, &dead_peers); } - synchronize_rcu_bh(); + synchronize_rcu(); list_for_each_entry_safe(peer, temp, &dead_peers, peer_list) peer_remove_after_dead(peer); } @@ -228,7 +228,7 @@ static void kref_release(struct kref *refcount) wg_packet_purge_staged_packets(peer); /* Free the memory used. */ - call_rcu_bh(&peer->rcu, rcu_release); + call_rcu(&peer->rcu, rcu_release); } void wg_peer_put(struct wg_peer *peer) |