summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/peer.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-06-04 17:17:33 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2022-07-07 13:26:44 +0200
commitb355f09d8d8cea9ccd9988f21f04543e968833cf (patch)
treefe28b1423e4665f2b6c20ee094b41690c6273b7c /drivers/net/wireguard/peer.h
parentb0474b5ab8aacb14bdc32ed4a556fe42d2b88787 (diff)
downloadwireguard-linux-trimmed-b355f09d8d8cea9ccd9988f21f04543e968833cf.tar.gz
wireguard-linux-trimmed-b355f09d8d8cea9ccd9988f21f04543e968833cf.zip
wireguard: use synchronize_net rather than synchronize_rcu
commit 24b70eeeb4f46c09487f8155239ebfb1f875774a upstream. 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> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/net/wireguard/peer.h')
0 files changed, 0 insertions, 0 deletions