Re: [PATCH v9 2/2] kho: Remove finalize state and clients
From: Pasha Tatashin
Date: Sat Feb 07 2026 - 12:21:09 EST
On Thu, Feb 5, 2026 at 9:14 PM Jason Miu <jasonmiu@xxxxxxxxxx> 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 <jasonmiu@xxxxxxxxxx>
> ---
> 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 <pasha.tatashin@xxxxxxxxxx>
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