Re: [PATCH RT] net: move xmit_recursion to per-task variable on -RT

From: Thomas Gleixner
Date: Wed Jan 13 2016 - 12:33:27 EST


On Wed, 13 Jan 2016, Sebastian Andrzej Siewior wrote:
> +#ifdef CONFIG_PREEMPT_RT_FULL
> +static inline int dev_recursion_level(void)
> +{
> + return atomic_read(&current->xmit_recursion);

Why would you need an atomic here. current does hardly race against itself.

Thanks,

tglx