Re: [PATCH v4 10/11] liveupdate: Defer file handler module refcounting to active sessions

Mike Rapoport
2026-04-15T15:35:50Z

On Mon, Apr 13, 2026 at 06:51:26PM +0000, Pasha Tatashin wrote:
> Stop pinning modules indefinitely upon file handler registration.
> Instead, dynamically increment the module reference count only when a
> live update session actively uses the file handler (e.g., during
> preservation or deserialization), and release it when the session ends.
>
> This allows modules providing live update handlers to be gracefully
> unloaded when no live update is in progress.
>
> Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
> Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org>

Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>

> ---
> kernel/liveupdate/luo_file.c | 24 ++++++++++++------------
> 1 file changed, 12 insertions(+), 12 deletions(-)

--
Sincerely yours,
Mike.