Commit 4c4835f
committed
fix(cleanup): remove running file before relink
Sometime, the VDI activation code in blktap2.py would wait on coalesce
being stopped while the GC code would be waiting for the activation
being done to continue with the relink, causing a deadlock.
We remove the coalesce running file before the relink so that it
continue as before, the activation will proceed then the relink will
run and refresh the tapdisk with the new parent.
We let the relink run everytime, it should be almost a noop if tapdisk
has made the parent change itself.
Signed-off-by: Damien Thenot <damien.thenot@vates.tech>1 parent d28569e commit 4c4835f
1 file changed
Lines changed: 13 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2480 | 2480 | | |
2481 | 2481 | | |
2482 | 2482 | | |
2483 | | - | |
2484 | 2483 | | |
2485 | 2484 | | |
2486 | 2485 | | |
| |||
2508 | 2507 | | |
2509 | 2508 | | |
2510 | 2509 | | |
2511 | | - | |
2512 | 2510 | | |
2513 | 2511 | | |
2514 | 2512 | | |
2515 | 2513 | | |
2516 | 2514 | | |
2517 | 2515 | | |
2518 | 2516 | | |
2519 | | - | |
2520 | | - | |
2521 | | - | |
2522 | | - | |
| 2517 | + | |
2523 | 2518 | | |
| 2519 | + | |
2524 | 2520 | | |
2525 | 2521 | | |
2526 | 2522 | | |
2527 | 2523 | | |
2528 | 2524 | | |
2529 | 2525 | | |
2530 | 2526 | | |
2531 | | - | |
2532 | | - | |
| 2527 | + | |
2533 | 2528 | | |
2534 | | - | |
2535 | | - | |
2536 | | - | |
2537 | | - | |
2538 | | - | |
2539 | | - | |
2540 | | - | |
2541 | | - | |
2542 | | - | |
2543 | | - | |
2544 | | - | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
2545 | 2539 | | |
2546 | | - | |
2547 | 2540 | | |
2548 | 2541 | | |
2549 | 2542 | | |
| |||
0 commit comments