Searched hist:"877907 d37da9694a34adc9dc3e2ce09400148cb5" (Results 1 – 1 of 1) sorted by relevance
/linux/arch/powerpc/platforms/cell/spufs/ |
H A D | inode.c | diff 877907d37da9694a34adc9dc3e2ce09400148cb5 Mon Jun 04 15:26:51 CEST 2007 Jeremy Kerr <jk@ozlabs.org> [POWERPC] spufs: Fix gang destroy leaks
Previously, closing a SPE gang that still has contexts would trigger a WARN_ON, and leak the allocated gang.
This change fixes the problem by using the gang's reference counts to destroy the gang instead. The gangs will persist until their last reference (be it context or open file handle) is gone.
Also, avoid using statements with side-effects in a WARN_ON().
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
|