1. 16 7月, 2008 1 次提交
  2. 30 4月, 2008 1 次提交
  3. 20 4月, 2008 7 次提交
  4. 30 1月, 2008 2 次提交
    • T
      65fdf7d2
    • C
      NLM/NFS: Use cached nlm_host when calling nlmclnt_proc() · 1093a60e
      Chuck Lever 提交于
      Now that each NFS mount point caches its own nlm_host structure, it can be
      passed to nlmclnt_proc() for each lock request.  By pinning an nlm_host for
      each mount point, we trade the overhead of looking up or creating a fresh
      nlm_host struct during every NLM procedure call for a little extra memory.
      
      We also restrict the nlmclnt_proc symbol to limit the use of this call to
      in-tree modules.
      
      Note that nlm_lookup_host() (just removed from the client's per-request
      NLM processing) could also trigger an nlm_host garbage collection.  Now
      client-side nlm_host garbage collection occurs only during NFS mount
      processing.  Since the NFS client now holds a reference on these nlm_host
      structures, they wouldn't have been affected by garbage collection
      anyway.
      
      Given that nlm_lookup_host() reorders the global nlm_host chain after
      every successful lookup, and that a garbage collection could be triggered
      during the call, we've removed a significant amount of per-NLM-request
      CPU processing overhead.
      
      Sidebar: there are only a few remaining references to the internals of
      NFS inodes in the client-side NLM code.  The only references I found are
      related to extracting or comparing the inode's file handle via NFS_FH().
      One is in nlmclnt_grant(); the other is in nlmclnt_setlockargs().
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      1093a60e
  5. 09 5月, 2007 1 次提交
  6. 04 2月, 2007 1 次提交
  7. 14 12月, 2006 1 次提交
  8. 09 12月, 2006 1 次提交
  9. 08 12月, 2006 1 次提交
  10. 06 12月, 2006 1 次提交
  11. 04 10月, 2006 3 次提交
  12. 02 10月, 2006 1 次提交
  13. 27 9月, 2006 1 次提交
  14. 23 9月, 2006 1 次提交
  15. 06 7月, 2006 2 次提交
  16. 01 7月, 2006 1 次提交
  17. 09 6月, 2006 1 次提交
  18. 21 3月, 2006 10 次提交
  19. 14 3月, 2006 1 次提交
  20. 02 2月, 2006 2 次提交