diff options
| author | Andre Detsch <[email protected]> | 2008-09-04 21:16:27 +0000 |
|---|---|---|
| committer | Jeremy Kerr <[email protected]> | 2008-09-07 23:44:43 +0000 |
| commit | b2e601d14deb2083e2a537b47869ab3895d23a28 (patch) | |
| tree | 302034680d5c7217c28d3b7dff025bd73eeee8c4 /fs/proc/array.c | |
| parent | powerpc/spufs: Fix race for a free SPU (diff) | |
| download | kernel-b2e601d14deb2083e2a537b47869ab3895d23a28.tar.gz kernel-b2e601d14deb2083e2a537b47869ab3895d23a28.zip | |
powerpc/spufs: Fix possible scheduling of a context to multiple SPEs
We currently have a race when scheduling a context to a SPE -
after we have found a runnable context in spusched_tick, the same
context may have been scheduled by spu_activate().
This may result in a panic if we try to unschedule a context that has
been freed in the meantime.
This change exits spu_schedule() if the context has already been
scheduled, so we don't end up scheduling it twice.
Signed-off-by: Andre Detsch <[email protected]>
Signed-off-by: Jeremy Kerr <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
