diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-04-14 00:54:45 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-04-14 14:28:43 +0200 |
commit | 00e9f35cdea55e6aaedffe47a9899170ea5cb05f (patch) | |
tree | dc4e4477858ee0f03d650c6793e76071def958f5 /src | |
parent | qemu: work on ARM64 (diff) | |
download | wireguard-monolithic-historical-00e9f35cdea55e6aaedffe47a9899170ea5cb05f.tar.xz wireguard-monolithic-historical-00e9f35cdea55e6aaedffe47a9899170ea5cb05f.zip |
device: use rcu_barrier_bh
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c index 7e0f85c..5d65277 100644 --- a/src/device.c +++ b/src/device.c @@ -83,7 +83,7 @@ static int suspending_clear_noise_peers(struct notifier_block *nb, unsigned long struct wireguard_device *wg = container_of(nb, struct wireguard_device, clear_peers_on_suspend); if (action == PM_HIBERNATION_PREPARE || action == PM_SUSPEND_PREPARE) { peer_for_each(wg, clear_noise_peer, NULL); - rcu_barrier(); + rcu_barrier_bh(); } return 0; } @@ -387,5 +387,5 @@ int device_init(void) void device_uninit(void) { rtnl_link_unregister(&link_ops); - rcu_barrier(); + rcu_barrier_bh(); } |