gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] swapcontest usage in syncio.c


From: Anand Avati
Subject: Re: [Gluster-devel] swapcontest usage in syncio.c
Date: Wed, 8 Aug 2012 21:53:41 -0700

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 <address@hidden> 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
address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]