https://github.com/torvalds/linux
Revision b2e601d14deb2083e2a537b47869ab3895d23a28 authored by Andre Detsch on 04 September 2008, 21:16:27 UTC, committed by Jeremy Kerr on 07 September 2008, 23:44:43 UTC
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 <adetsch@br.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
1 parent b65fe03
History
Tip revision: b2e601d14deb2083e2a537b47869ab3895d23a28 authored by Andre Detsch on 04 September 2008, 21:16:27 UTC
powerpc/spufs: Fix possible scheduling of a context to multiple SPEs
Tip revision: b2e601d
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.7 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 99.8 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top