Commit a961f76
authored
Drop OPTE port lock earlier (#10281)
Fixes a possible deadlock in the OPTE port manager. When failing to add
external IPs for a new port, we both the `PortTicket` and a lock guard
around the mananger's mapping of all ports. Unforunately, we do that in
the wrong order: `PortTicket` first, which attempts to take that same
lock in its drop implementation. This drops the port lock earlier, to
avoid a deadlock.
Fixes #102801 parent 00f5b0a commit a961f76
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
| |||
424 | 423 | | |
425 | 424 | | |
426 | 425 | | |
427 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
428 | 438 | | |
429 | 439 | | |
430 | 440 | | |
| |||
0 commit comments