Re: swapcontest usage in syncio.c

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

 



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 <manu@xxxxxxxxxx> 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@xxxxxxxxxx


[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux