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 | 65e974275bb36fb5e2355b61e7a57cddab5065a2 (patch) | |
tree | 9d5179cefd2549d14b4b293666eb9f327c92af69 /src/device.c | |
parent | c865218afdf03e3b6305dbfe2dd3c4d2df67bfa7 (diff) |
device: use rcu_barrier_bh
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.c')
-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(); } |