]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: reduce peer lock critical section in UAPI
authorJosh Bleecher Snyder <josh@tailscale.com>
Thu, 18 Nov 2021 23:37:24 +0000 (15:37 -0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 23 Nov 2021 21:03:15 +0000 (22:03 +0100)
commit387f7c461a16b28af2f19d31f9da2cc544e487c4
tree550db377e7e5243e61ab9f67564db03eefd23ef0
parent4d87c9e8246072d4880e6f198f81ad4675872d86
device: reduce peer lock critical section in UAPI

The deferred RUnlock calls weren't executing until all peers
had been processed. Add an anonymous function so that each
peer may be unlocked as soon as it is completed.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/uapi.go