WSL2-Linux-Kernel/arch/powerpc
Andre Detsch 36ddbb1380 [POWERPC] spufs: Fix race condition on gang->aff_ref_spu
Affinity reference point location (gang->aff_ref_spu) is reset
when the whole gang is descheduled. However, the last member of
a gang can be descheduled while we are trying to schedule another
member of the gang. This was leading to a race condition, and
the code was using gang->aff_ref_spu in an unsafe manner.

By holding the gang->aff_mutex a little bit longer, and increment
gang->aff_sched_count (which controls when gang->aff_ref_spu
should be reset) a little bit earlier, the problem is fixed.

Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-09-19 15:12:16 +10:00
..
boot [POWERPC] MPC832x_RDB: Update dts to use SPI1 in QE, register mmc_spi stub 2007-09-14 08:54:13 -05:00
configs [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port 2007-09-14 08:51:54 -05:00
kernel [POWERPC] Remove barriers from the SLB shadow buffer update 2007-09-19 14:40:54 +10:00
lib Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] Remove barriers from the SLB shadow buffer update 2007-09-19 14:40:54 +10:00
oprofile Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
platforms [POWERPC] spufs: Fix race condition on gang->aff_ref_spu 2007-09-19 15:12:16 +10:00
sysdev [POWERPC] fsl_soc: add support for fsl_spi 2007-09-14 08:54:09 -05:00
xmon [POWERPC] fix showing xmon help 2007-07-22 21:30:58 +10:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig [POWERPC] IOMMU virtual merge is no longer experimental 2007-09-14 01:33:19 +10:00
Kconfig.debug [POWERPC] Export virq mapping via debugfs 2007-09-14 01:33:20 +10:00
Makefile [POWERPC] Stop include asm-ppc when building ARCH=powerpc for ppc32 2007-08-22 22:47:33 -05:00