Commit 36ee348
part: Add missing closing of root watch channel
The commit f8e6b9e changed the implementation not to always have
a zero-prefix node4 at the root. This change unfortunately missed marking
the replaced root's watch channel for closing. This fixes the issue and
adds a validation to make sure any watch channel that no longer is referenced
in the new tree is closed.
=== RUN Test_replaceRoot
node4[61]: 61 -> 1 (L:0x4000041b00 W:0x4000014a80 true) (N:0x400012c500, W:0x4000014bd0 false)
leaf[62]: 6162 -> 3 (L:0x4000041b30 W:0x4000014b60 false) (N:0x4000041b30, W:0x4000014b60 false)
---
leaf[6162]: 6162 -> 3 (L:0x4000041bf0 W:0x4000014b60 false) (N:0x4000041bf0, W:0x4000014b60 false)
--- FAIL: Test_replaceRoot (0.00s)
panic: dropped watch channel 0x4000014bd0 at depth 0 not closed [recovered]
panic: dropped watch channel 0x4000014bd0 at depth 0 not closed
Fixes: f8e6b9e ("part: Remove the unnecessary empty root node")
Signed-off-by: Jussi Maki <jussi@isovalent.com>1 parent 6295bf1 commit 36ee348
1 file changed
+56
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
| |||
426 | 429 | | |
427 | 430 | | |
428 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
429 | 435 | | |
430 | 436 | | |
431 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
432 | 441 | | |
433 | 442 | | |
434 | 443 | | |
| |||
471 | 480 | | |
472 | 481 | | |
473 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
474 | 486 | | |
475 | 487 | | |
476 | 488 | | |
| |||
675 | 687 | | |
676 | 688 | | |
677 | 689 | | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
0 commit comments