summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/stack.go
diff options
context:
space:
mode:
authorGhanan Gowripalan <ghanan@google.com>2021-02-06 12:42:25 -0800
committergVisor bot <gvisor-bot@google.com>2021-02-06 12:44:15 -0800
commit4943347137dd09cd47b22b5998f8823e0bb04de6 (patch)
treedbe8d424c2575ed866b6f30201985a4543eed34a /pkg/tcpip/stack/stack.go
parenta83c8585aff55fb5fa2b8b61bf8e1c79d23d59bf (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/tcpip/stack/stack.go')
0 files changed, 0 insertions, 0 deletions