android_kernel_samsung_msm8976/arch/powerpc/platforms
Benjamin Herrenschmidt 17e0e27020 [POWERPC] spufs: Fix bitrot of the SPU mmap facility
It looks like we've had some serious bitrot there mostly due to tracking
of address_space's of mmap'ed files getting out of sync with the actual
mmap code. The mfc, mss and psmap were not tracked properly and thus
not invalidated on context switches (oops !)

I also removed the various file->f_mapping = inode->i_mapping;
assignments that were done in the other open() routines since that
is already done for us by __dentry_open.

One improvement we might want to do later is to assign the various
ctx-> fields at mmap time instead of file open/close time so that we
don't call unmap_mapping_range() on thing that have not been mmap'ed

Finally, I added some smp_wmb's after assigning the ctx-> fields to make
sure they are visible to other CPUs. I don't think this is really
necessary as I suspect locking in the fs layer will make that happen
anyway but better safe than sorry.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-02-13 15:35:54 +11:00
..
4xx kconfig: Standardize "depends" -> "depends on" in Kconfig files 2006-12-12 20:04:19 +01:00
8xx [POWERPC] Add mpc866ads board-specific bits to arch/powerpc 2007-02-07 14:03:17 +11:00
52xx [POWERPC] Small cleanup of EFIKA platform 2007-02-13 15:35:53 +11:00
82xx [POWERPC] Fix kernel build errors for mpc8272ads and mpc8560ads 2007-02-07 14:03:20 +11:00
83xx [POWERPC] 83xx: Updated and renamed MPC834x SYS to MPC834x MDS 2007-02-09 11:39:46 -06:00
85xx [POWERPC] 85xx: Marked functions static 2007-02-09 09:30:45 -06:00
86xx [POWERPC] 86xx: local_irq_disable() is redundant after local_irq_save() 2007-02-07 14:03:20 +11:00
apus
cell [POWERPC] spufs: Fix bitrot of the SPU mmap facility 2007-02-13 15:35:54 +11:00
celleb [POWERPC] Celleb: improve MMU hashtable locking 2007-02-13 15:35:51 +11:00
chrp [PATCH] arch/powerpc trivial annotations 2007-02-09 09:14:06 -08:00
embedded6xx [POWERPC] Update to linkstation / kurobox support 2007-02-09 11:41:18 -06:00
iseries [PATCH] mark struct file_operations const 2 2007-02-12 09:48:44 -08:00
maple [POWERPC] Maple: use mmio nvram 2007-02-07 14:03:23 +11:00
pasemi [POWERPC] pasemi: iommu support 2007-02-07 14:03:22 +11:00
powermac [PATCH] Dynamic kernel command-line: powerpc 2007-02-12 09:48:38 -08:00
prep
ps3 [POWERPC] powerpc: Remove SPU struct pages for PS3 2007-02-13 15:35:54 +11:00
pseries [POWERPC] Mark winbond IDE PCI resources with start 0 as unassigned 2007-02-13 15:35:52 +11:00
Makefile [POWERPC] Restore 'proper' link order in platform 2007-02-13 15:35:53 +11:00