summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/main.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-06-04 17:17:33 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-04 14:25:14 -0700
commit5a104dcd5da919cb1e6690be5084f61dd2b57c85 (patch)
treebcc41e7495516f2bd3d6ce908837bfd165706ff8 /drivers/net/wireguard/main.c
parentcb25fbb7237d8e3258f811c95a90798910bd84fd (diff)
downloadwireguard-linux-trimmed-5a104dcd5da919cb1e6690be5084f61dd2b57c85.tar.gz
wireguard-linux-trimmed-5a104dcd5da919cb1e6690be5084f61dd2b57c85.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") Cc: stable@vger.kernel.org Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireguard/main.c')
0 files changed, 0 insertions, 0 deletions