The change should be sufficient only in syncop_switchto(). Change in
syncop_yeild() should not be necessary. I still don't understand how/why
this change will help NetBSD, but it shouldn't break anything on Linux
(calling makecontext() within or outside syncop_switchto() should not
matter).

Avati

On Wed, Aug 8, 2012 at 9:36 AM, Emmanuel Dreyfus <[email protected]> wrote:

> On Wed, Aug 08, 2012 at 12:49:11PM +0000, Emmanuel Dreyfus wrote:
> > The problem is caused by a non portable behavior of swapcontext(): on
> > Linux it remains in the same thread, on NetBSD it switches to the
> > thread where getcontext()/makecontext() was run.
>
> Is the attached patch resonable enough to be posted in gerrit?
>
> --
> Emmanuel Dreyfus
> [email protected]
>
_______________________________________________
Gluster-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/gluster-devel

Reply via email to