Re: [PATCH v3 05/10] liveupdate: Defer FLB module refcounting to active sessions
From: Pratyush Yadav
Date: Thu Apr 02 2026 - 12:25:03 EST
On Fri, Mar 27 2026, 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>
This is good for now but I think we should rework the FLB registration
down the line. File handlers should not use the FLB before registering
first, and we should initialize the FLB on registration. At this point,
if there is incoming data for the FLB the module reference should be
taken since now there are files depending on that module.
Reviewed-by: Pratyush Yadav (Google) <pratyush@xxxxxxxxxx>
[...]
--
Regards,
Pratyush Yadav