Re: [RFC 7/7] x86/current: Aggressive caching of current

From: Peter Zijlstra
Date: Mon Jul 22 2019 - 17:07:11 EST


On Thu, Jul 18, 2019 at 10:41:10AM -0700, Nadav Amit wrote:
> The current_task is supposed to be constant in each thread and therefore
> does not need to be reread. There is already an attempt to cache it
> using inline assembly, using this_cpu_read_stable(), which hides the
> dependency on the read memory address.

Is that what it does?!, I never quite could understand
percpu_stable_op().