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

Jeremy Kerr jk at ozlabs.org
Fri Feb 29 13:49:41 EST 2008


Hi Luke,

> I think that you should unconditionally call spu_deactivate(),
> because the context may be on the runqueue.

The context shouldn't be on the runqueue, because that would mean that a 
thread is in spu_run(), which does a fget_light() on the context fd, 
which then cannot be destroyed, so spu_forget won't get called.

Or am I missing something?

Cheers,


Jeremy



More information about the cbe-oss-dev mailing list