[Cbe-oss-dev] [PATCH] spusched: extend list_mutex coverage
Jeremy Kerr
jk at ozlabs.org
Thu Jul 24 09:58:53 EST 2008
> Stable doesn't only mean it's the same, it also implies that it's
> still there. Without the list_mutex there is no guarantee victim
> hasn't been freed in the meantime. The same also applies to the
> scheduler thread.
OK, if you want to protect against the context going away, I'd suggest
using get_spu_context(), if this is possible.
Cheers,
Jeremy
More information about the cbe-oss-dev
mailing list