Skip to content
  1. Dec 21, 2007
  2. Dec 19, 2007
  3. Nov 20, 2007
    • Jeremy Kerr's avatar
      [POWERPC] spufs: Fix context destroy vs /spu readdir race · c443acab
      Jeremy Kerr authored
      
      
      We can currently cause an oops by repeatedly creating and destroying
      contexts, while doing getdents() calls on the "/spu" directory.
      
      This is due to the context's top-level dentry remaining hashed while
      the context is being destroyed.
      
      Fix this by unhashing the context's dentry with the
      dentry->d_inode->i_mutex held. This way, we'll hit the check for
      d_unhashed in dentry_readdir, and won't be included in the
      list of subdirs for /spu.
      
      test: spufs-testsuite:tests/01-spu_create/07-destroy-vs-readdir-race
      
      Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      c443acab
  4. Oct 19, 2007
  5. Oct 17, 2007
  6. Oct 12, 2007
    • Paul Mackerras's avatar
      [POWERPC] Use 1TB segments · 1189be65
      Paul Mackerras authored
      
      
      This makes the kernel use 1TB segments for all kernel mappings and for
      user addresses of 1TB and above, on machines which support them
      (currently POWER5+, POWER6 and PA6T).
      
      We detect that the machine supports 1TB segments by looking at the
      ibm,processor-segment-sizes property in the device tree.
      
      We don't currently use 1TB segments for user addresses < 1T, since
      that would effectively prevent 32-bit processes from using huge pages
      unless we also had a way to revert to using 256MB segments.  That
      would be possible but would involve extra complications (such as
      keeping track of which segment size was used when HPTEs were inserted)
      and is not addressed here.
      
      Parts of this patch were originally written by Ben Herrenschmidt.
      
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      1189be65
  7. Sep 26, 2007
  8. Sep 19, 2007
Loading