Home
last modified time | relevance | path

Searched hist:"24 b70eeeb4f46c09487f8155239ebfb1f875774a" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/wireguard/
H A Dpeer.cdiff 24b70eeeb4f46c09487f8155239ebfb1f875774a Fri Jun 04 10:17:33 CDT 2021 Jason A. Donenfeld <Jason@zx2c4.com> 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: e7096c131e51 ("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>
H A Dsocket.cdiff 24b70eeeb4f46c09487f8155239ebfb1f875774a Fri Jun 04 10:17:33 CDT 2021 Jason A. Donenfeld <Jason@zx2c4.com> 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: e7096c131e51 ("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>