Skip to content
  1. Aug 25, 2006
    • ASANO Masahiro's avatar
      VFS: add lookup hint for network file systems · a634904a
      ASANO Masahiro authored
      
      
      I'm trying to speeding up mkdir(2) for network file systems.  A typical
      mkdir(2) calls two inode_operations: lookup and mkdir.  The lookup
      operation would fail with ENOENT in common case.  I think it is unnecessary
      because the subsequent mkdir operation can check it.  In case of creat(2),
      lookup operation is called with the LOOKUP_CREATE flag, so individual
      filesystem can omit real lookup.  e.g.  nfs_lookup().
      
      Here is a sample patch which uses LOOKUP_CREATE and O_EXCL on mkdir,
      symlink and mknod.  This uses the gadget for creat(2).
      
      And here is the result of a benchmark on NFSv3.
        mkdir(2) 10,000 times:
          original  50.5 sec
          patched   29.0 sec
      
      Signed-off-by: default avatarASANO Masahiro <masano@tnes.nec.co.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      (cherry picked from fab7bf44449b29f9d5572a5dd8adcf7c91d5bf0f commit)
      a634904a
    • Nikita Danilov's avatar
      NFS: Fix a potential deadlock in nfs_release_page · ddeff520
      Nikita Danilov authored
      
      
      nfs_wb_page() waits on request completion and, as a result, is not safe to be
      called from nfs_release_page() invoked by VM scanner as part of GFP_NOFS
      allocation. Fix possible deadlock by analyzing gfp mask and refusing to
      release page if __GFP_FS is not set.
      
      Signed-off-by: default avatarNikita Danilov <danilov@gmail.com>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      (cherry picked from 374d969debfb290bafcb41d28918dc6f7e43ce31 commit)
      ddeff520
  2. Aug 19, 2006
  3. Aug 18, 2006
  4. Aug 17, 2006
  5. Aug 16, 2006