Repository navigation
Commit a562ac2
vmm: skip pending memory sends on worker failure
When a memory-sending worker fails, the migration thread calls
`SendAdditionalConnections::cleanup()`. Cleanup tries to enqueue one
`Disconnect` message per worker, but the bounded channel may still
contain `SendMemoryThreadMessage::Memory` values.
The surviving workers currently call `send_memory_ranges()` for each
such value, even though the migration has already failed. Skip that call
when `worker_error` is set. This consumes the queued values without
processing them and lets cleanup enqueue the `Disconnect` messages.
On-behalf-of: SAP leander.kohler@sap.com
Signed-off-by: Leander Kohler <leander.kohler@cyberus-technology.de>
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>1 parent 1800bdd commit a562ac2
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
731 | 733 | | |
732 | 734 | | |
733 | 735 | | |
| |||
0 commit comments