Re: [PATCH] kernel: fix data race in put_pid

Peter Zijlstra
2015-09-18T12:24:46Z

On Fri, Sep 18, 2015 at 01:56:37PM +0200, Peter Zijlstra wrote:
> +#ifndef atomic64_read_ctrl
> +static inline int atomic64_read_ctrl(atomic64_t *v)
> +{
> + int val = atomic64_read(v);

Duh

long long...

> + smp_read_barrier_depends(); /* Enforce control dependency. */
> + return val;
> +}
> +#endif