summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/allowedips.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-05-19 17:55:51 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-05-19 18:05:55 +0200
commit1182b442013d80a2ac2ddc06eb97064bd3d0b53e (patch)
tree8550a7e0f1cabcb3e64c1aabb0ed2976f03c9fb2 /drivers/net/wireguard/allowedips.h
parent1fa168915318b5acc4a0eb437c04a366dc6ba8c0 (diff)
downloadwireguard-linux-trimmed-1182b442013d80a2ac2ddc06eb97064bd3d0b53e.tar.gz
wireguard-linux-trimmed-1182b442013d80a2ac2ddc06eb97064bd3d0b53e.zip
wireguard: use synchronize_net rather than synchronize_rcu
Many of the synchronization points are sometimes called under the rtnl lock, which means we should use synchronize_net rather than synchronize_rcu. Under the hood, this expands to using the expedited flavor of function in the event that rtnl is held, in order to not stall other concurrent changes. This fixes some very, very long delays when removing multiple peers at once, which would cause some operations to take several minutes. Fixes: a8f1bc7bdea3 ("net: WireGuard secure network tunnel") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/net/wireguard/allowedips.h')
0 files changed, 0 insertions, 0 deletions