|
From: | Emmanuel Dreyfus |
Subject: | Re: [Gluster-devel] swapcontest usage in syncio.c |
Date: | Thu, 9 Aug 2012 07:13:00 +0200 |
User-agent: | MacSOUP/2.7 (unregistered for 2028 days) |
Anand Avati <address@hidden> wrote: > I still don't understand how/why this change will help NetBSD It ensures swapcontext() is operates on a context obtanined by getcontext() in the same thread. NetBSD considers the thread to be part of the context, and calling swapcontext() with a context obtained from another thread will preempt the other thread in order to execute synctask_wrap(). And here we break because synctask_get() will not retreive the approriate task, as it was set in thread specific storage of another thread. -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |