On Mon, 4 Jan 2016 14:34:44 -0500
Chris Metcalf <[email protected]> wrote:


> +#ifdef CONFIG_TASK_ISOLATION
> +void task_isolation_debug(int cpu)
> +{
> +     struct task_struct *p;
> +
> +     if (!task_isolation_possible(cpu))
> +             return;
> +
> +     rcu_read_lock();

What's the rcu_read_lock() for? I don't see what is being protected by
rcu here?

-- Steve

> +     p = cpu_curr(cpu);
> +     get_task_struct(p);
> +     rcu_read_unlock();
> +     task_isolation_debug_task(cpu, p);
> +     put_task_struct(p);
> +}
> +#endif
> +
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to