[Gluster-devel] swapcontest usage in syncio.c

Anand Avati anand.avati at gmail.com
Thu Aug 9 04:53:41 UTC 2012

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


On Wed, Aug 8, 2012 at 9:36 AM, Emmanuel Dreyfus <manu at netbsd.org> 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
> manu at netbsd.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20120808/65cf1800/attachment-0003.html>

More information about the Gluster-devel mailing list