Re: [RFC PATCH] introduce sys_membarrier(): process-wide memory barrier

Mathieu Desnoyers
2010-01-08T23:53:42Z

* Steven Rostedt (rostedt@goodmis.org) wrote:
> Well, if we just grab the task_rq(task)->lock here, then we should be
> OK? We would guarantee that curr is either the task we want or not.
>

Hrm, I just tested it, and there seems to be a significant performance
penality involved with taking these locks for each CPU, even with just 8
cores. So if we can do without the locks, that would be preferred.

Thanks,

Mathieu

--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68