<div dir="ltr">On Thu, Mar 12, 2015 at 10:57 AM, Mathieu Desnoyers <span dir="ltr"><<a href="mailto:mathieu.desnoyers@efficios.com" target="_blank">mathieu.desnoyers@efficios.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:rgb(0,0,0)"><br><div>Even though it depends on internal behavior not currently specified by mprotect,<br></div><div>I'd very much like to see the prototype you have,<br></div><div><br></div></div></div></blockquote><div><br>I ended up posting my code at <a href="https://github.com/msullivan/userspace-rcu/tree/msync-barrier">https://github.com/msullivan/userspace-rcu/tree/msync-barrier</a>.<br>The interesting patch is <a href="https://github.com/msullivan/userspace-rcu/commit/04656b468d418efbc5d934ab07954eb8395a7ab0">https://github.com/msullivan/userspace-rcu/commit/04656b468d418efbc5d934ab07954eb8395a7ab0</a>.<br><br></div><div>Quick blog post I wrote about it at <a href="http://www.msully.net/blog/2015/02/24/forcing-memory-barriers-on-other-cpus-with-mprotect2/">http://www.msully.net/blog/2015/02/24/forcing-memory-barriers-on-other-cpus-with-mprotect2/</a>.<br></div><div>(I talked briefly about sys_membarrier in the post as best as I could piece together from LKML; if my comment on it is inaccurate I can edit the post.)<br></div><div><br></div><div>-Michael Sullivan<br></div></div></div></div>