[PATCH v4 1/3] liveupdate: Move file_set_ser handling to session serialization helpers
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Sun Oct 25 18:54:50 PDT 2026
> Currently, struct luo_session_ser is populated and cleared across two
> layers: luo_session_serialize() writes and clears ser->name, while
> luo_file_freeze() and luo_file_unfreeze() write and clear
> ser->file_set_ser.
>
> In preparation for allowing userspace to freeze a session explicitly
> before kexec reboot, luo_file_freeze() and luo_file_unfreeze() need to
> be called on session->file_set before any struct luo_session_ser entry
> is reserved in luo_session_serialize().
>
> Drop the struct luo_file_set_ser pointer parameter from
> luo_file_freeze() and luo_file_unfreeze(), and rename
> luo_session_freeze_one() and luo_session_unfreeze_one() to
> luo_session_serialize_one() and luo_session_unserialize_one() so that
> all fields of struct luo_session_ser are populated and cleared in one
> place.
>
> Signed-off-by: Pasha Tatashin <pasha.tatashin at soleen.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261026014948.162559-1-pasha.tatashin@soleen.com?part=1
More information about the kexec
mailing list