Re: [PATCH v5 18/22] kho: extend scratch

Mike Rapoport <[email protected]> Thu, 30 Jul 2026 11:37:14 +0300
Newsgroups org.infradead.lists.kexec,org.kernel.vger.linux-kernel,org.kvack.linux-mm
Message-ID <178540063445.2151126.14089645580528118019.b4-review@b4>
> +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.