[PATCH v5 18/22] kho: extend scratch
Mike Rapoport
rppt at kernel.org
Thu Jul 30 01:37:14 PDT 2026
> +static void __init kho_extend_scratch(void)
> +{
> + const struct kho_radix_walk_cb kho_cb = {
> + .leaf = kho_ext_walk_leaf,
> + .node = kho_ext_walk_node,
> + };
> + const struct kho_radix_walk_cb ext_cb = {
> + .leaf = kho_ext_mark_scratch,
> + };
> + struct kho_radix_tree radix;
> + phys_addr_t prev_end = 0;
> + int err = 0;
> +
> + err = kho_radix_init_tree(&radix, NULL);
> + if (err)
> + goto print;
> +
> + /* Walk the KHO radix tree to find busy blocks. */
> + err = kho_radix_walk_tree(&kho_in.radix_tree, &kho_cb, &radix);
sashiko: Will this trigger a lockdep recursive locking warning?
I think it will.
--
Sincerely yours,
Mike.
More information about the kexec
mailing list