[Cbe-oss-dev] [PATCH 2/2] [POWERPC] spufs: fix invalid scheduling of forgotten contexts

Luke Browning lukebr at linux.vnet.ibm.com
Tue Mar 4 04:13:56 EST 2008


On Mon, 2008-03-03 at 14:57 +1100, Jeremy Kerr wrote:
> Hi Luke,
> 
> > The context could be time sliced while in user mode, if it was lazily
> > loaded.  If there is not another context on run queue, when the yield
> > at the end of spu_run is run, the context remains loaded.  We both
> > submitted patches for this recently.
> 
> Sure, we're loaded, but we're not on the run queue, and cannot ever be 
> on it from the point that spu_forget is called.

If it could be lazily loaded, it can be on the runqueue as described
above. Therefore, it is not a bug for the context to be on the runqueue
at the time spu_forget() is called. 

Luke




More information about the cbe-oss-dev mailing list