Re: [PATCH v3 04/10] liveupdate: Protect FLB lists with luo_register_rwlock

From: Pratyush Yadav

Date: Tue Mar 31 2026 - 15:37:12 EST


On Fri, Mar 27 2026, Pasha Tatashin wrote:

> Because liveupdate FLB objects will soon drop their persistent module
> references when registered, list traversals must be protected against
> concurrent module unloading.
>
> To provide this protection, utilize the global luo_register_rwlock.
> It protects the global registry of FLBs and the handler's specific
> list of FLB dependencies.
>
> Read locks are used during concurrent list traversals (e.g., during
> preservation and serialization). Write locks are taken during registration
> and unregistration.
>
> Signed-off-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>

Reviewed-by: Pratyush Yadav (Google) <pratyush@xxxxxxxxxx>

[...]

--
Regards,
Pratyush Yadav