Re: [PATCH v4 05/11] liveupdate: Defer FLB module refcounting to active sessions

From: Mike Rapoport

Date: Wed Apr 15 2026 - 11:29:14 EST


On Mon, Apr 13, 2026 at 06:51:21PM +0000, Pasha Tatashin wrote:
> Stop pinning modules indefinitely upon FLB registration.
> Instead, dynamically take a module reference when the FLB is actively
> used in a session (e.g., during preserve and retrieve) and release it
> when the session concludes.
>
> This allows modules providing FLB operations to be cleanly unloaded
> when not in active use by the live update orchestrator.
>
> Signed-off-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>
> Reviewed-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>
> Reviewed-by: Pratyush Yadav (Google) <pratyush@xxxxxxxxxx>

Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

> ---
> kernel/liveupdate/luo_flb.c | 27 +++++++++++++++++----------
> 1 file changed, 17 insertions(+), 10 deletions(-)
>

--
Sincerely yours,
Mike.