Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

Peter Zijlstra
2016-06-23T18:54:27Z

On Thu, Jun 23, 2016 at 11:00:08AM -0700, Kees Cook wrote:
>
> Why does __mutex_lock_common() have "task" as a stack variable?

That's actually a fairly common thing to do. The reason is that
'current' is far more expensive to evaluate than a local variable.