diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2021-02-06 12:42:25 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-06 12:44:15 -0800 |
commit | 4943347137dd09cd47b22b5998f8823e0bb04de6 (patch) | |
tree | dbe8d424c2575ed866b6f30201985a4543eed34a /pkg/binary/binary_state_autogen.go | |
parent | a83c8585aff55fb5fa2b8b61bf8e1c79d23d59bf (diff) |
Use fine grained locks while sending NUD probes
Previously when sending probe messages, we would hold a shared lock
which lead to deadlocks (due to synchronous packet loooping (e.g. pipe
and loopback link endpoints)) and lock contention.
Writing packets may be an expensive operation which could prevent other
goroutines from doing meaningful work if a shared lock is held while
writing packets.
This change upates the NUD timers to not hold shared locks while
sending packets.
PiperOrigin-RevId: 356048697
Diffstat (limited to 'pkg/binary/binary_state_autogen.go')
0 files changed, 0 insertions, 0 deletions