Re: [PATCH v3 03/10] liveupdate: Protect file handler list with rwsem

From: Pratyush Yadav

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


On Fri, Mar 27 2026, Pasha Tatashin wrote:

> Because liveupdate file handlers will no longer hold a module reference
> when registered, we must ensure that the access to the handler list is
> protected against concurrent module unloading.
>
> Utilize the global luo_register_rwlock to protect the global registry of
> file handlers. Read locks are taken during list traversals in
> luo_preserve_file() and luo_file_deserialize(). 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