On Thu, Feb 5, 2026 at 9:14 PM Jason Miu <[email protected]> wrote:
>
> Eliminate the `kho_finalize()` function and its associated state from
> the KHO subsystem. The transition to a radix tree for memory tracking
> makes the explicit "finalize" state and its serialization step
> obsolete.
>
> Remove the `kho_finalize()` and `kho_finalized()` APIs and their stub
> implementations. Update KHO client code and the debugfs interface to
> no longer call or depend on the `kho_finalize()` mechanism.
>
> Complete the move towards a stateless KHO, simplifying the overall
> design by removing unnecessary state management.
>
> Signed-off-by: Jason Miu <[email protected]>
> ---
>  Documentation/admin-guide/mm/kho.rst        | 53 +++++----------------
>  Documentation/core-api/kho/index.rst        | 12 -----
>  kernel/liveupdate/kexec_handover.c          | 21 +-------
>  kernel/liveupdate/kexec_handover_debugfs.c  | 23 ---------
>  kernel/liveupdate/kexec_handover_internal.h |  3 --
>  kernel/liveupdate/luo_core.c                | 12 +----
>  tools/testing/selftests/kho/init.c          | 20 --------
>  7 files changed, 13 insertions(+), 131 deletions(-)

Reviewed-by: Pasha Tatashin <[email protected]>

A comment in FLB patch would also need to be updated:
633  * Context: Called from liveupdate_reboot() just before
kho_finalize().
634  */
635 void luo_flb_serialize(void)

But, given that patch has not yet landed, it should be updated
separately, as it is likely this work lands first.

Pasha

Reply via email to