Skip to content

Commit 04be3e9

Browse files
author
Dave Anderson
committed
Fix for hybrid kernels that have backported support for the Xarray
facility while allowing subsystems to continue to use radix trees. Without the patch, the crash session fails during initialization with the message "crash: xarray facility does not exist or has changed its format". ([email protected])
1 parent a5ed297 commit 04be3e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

task.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -486,14 +486,14 @@ task_init(void)
486486
"radix_tree_node","height");
487487
MEMBER_OFFSET_INIT(radix_tree_node_shift,
488488
"radix_tree_node","shift");
489-
} else {
490-
STRUCT_SIZE_INIT(xarray, "xarray");
491-
STRUCT_SIZE_INIT(xa_node, "xa_node");
492-
MEMBER_OFFSET_INIT(xarray_xa_head, "xarray","xa_head");
493-
MEMBER_OFFSET_INIT(xa_node_slots, "xa_node","slots");
494-
MEMBER_OFFSET_INIT(xa_node_shift, "xa_node","shift");
495489
}
496490

491+
STRUCT_SIZE_INIT(xarray, "xarray");
492+
STRUCT_SIZE_INIT(xa_node, "xa_node");
493+
MEMBER_OFFSET_INIT(xarray_xa_head, "xarray","xa_head");
494+
MEMBER_OFFSET_INIT(xa_node_slots, "xa_node","slots");
495+
MEMBER_OFFSET_INIT(xa_node_shift, "xa_node","shift");
496+
497497
if (symbol_exists("pidhash") && symbol_exists("pid_hash") &&
498498
!symbol_exists("pidhash_shift"))
499499
error(FATAL,

0 commit comments

Comments
 (0)