diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2021-02-06 13:45:44 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-06 13:47:37 -0800 |
commit | 11ce8ba992aca85d28063d243d59b11d3bee99ba (patch) | |
tree | 4188ed26abaab6bc0dc1ff435d75b0afe0c48962 /pkg/sentry | |
parent | c5afaf2854679fbb7470f9a615d3c0fbb2af0999 (diff) |
Use fine grained locks while sending NDP packets
Previously when sending NDP DAD or RS 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 NDP DAD/RS timers to not hold shared locks while
sending packets.
PiperOrigin-RevId: 356053146
Diffstat (limited to 'pkg/sentry')
0 files changed, 0 insertions, 0 deletions