Re: [PATCH 1/2] vdso/timens: Move functions to new file
From: Thomas Gleixner
Date: Tue Mar 24 2026 - 15:41:48 EST
On Mon, Mar 23 2026 at 09:07, Thomas Weißschuh wrote:
> +static void timens_set_vvar_page(struct task_struct *task,
> + struct time_namespace *ns)
> +{
> + struct vdso_time_data *vdata;
> + struct vdso_clock *vc;
> + unsigned int i;
> +
> + if (ns == &init_time_ns)
> + return;
> +
> + /* Fast-path, taken by every task in namespace except the first. */
> + if (likely(ns->frozen_offsets))
> + return;
> +
> + mutex_lock(&timens_offset_lock);
Please convert all the locking to guard() while at it.
Thanks,
tglx