Re: [PATCH v6 3/4] mm/memory-failure: add panic option for unrecoverable pages

From: David Hildenbrand (Arm)

Date: Tue May 12 2026 - 04:28:51 EST



> @@ -1281,6 +1292,18 @@ static void update_per_node_mf_stats(unsigned long pfn,
> ++mf_stats->total;
> }
>
> +static bool panic_on_unrecoverable_mf(enum mf_action_page_type type,
> + enum mf_result result)
> +{
> + if (!sysctl_panic_on_unrecoverable_mf || result != MF_IGNORED)
> + return false;
> +
> + if (type == MF_MSG_KERNEL)
> + return true;
> +
> + return false;

return type == MF_MSG_KERNEL;

might be simpler.

--
Cheers,

David