1. 07 3月, 2012 1 次提交
  2. 15 2月, 2012 2 次提交
  3. 06 1月, 2012 1 次提交
  4. 16 11月, 2011 1 次提交
    • J
      nfsd4: add a separate (lockowner, inode) lookup · 009673b4
      J. Bruce Fields 提交于
      Address the possible performance regression mentioned in "nfsd4: hash
      lockowners to simplify RELEASE_LOCKOWNER" by providing a separate
      (lockowner, inode) hash.
      
      Really, I doubt this matters much, but I think it's likely we'll change
      these data structures here and I'd rather that the need for (owner,
      inode) lookups be well-documented.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      009673b4
  5. 24 10月, 2011 1 次提交
  6. 18 10月, 2011 3 次提交
  7. 11 10月, 2011 2 次提交
  8. 27 9月, 2011 4 次提交
  9. 19 9月, 2011 2 次提交
    • J
      nfsd4: hash closed stateid's like any other · f7a4d872
      J. Bruce Fields 提交于
      Look up closed stateid's in the stateid hash like any other stateid
      rather than searching the close lru.
      
      This is simpler, and fixes a bug: currently we handle only the case of a
      close that is the last close for a given stateowner, but not the case of
      a close for a stateowner that still has active opens on other files.
      Thus in a case like:
      
      	open(owner, file1)
      	open(owner, file2)
      	close(owner, file2)
      	close(owner, file2)
      
      the final close won't be recognized as a retransmission.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      f7a4d872
    • J
      nfsd4: construct stateid from clientid and counter · d3b313a4
      J. Bruce Fields 提交于
      Including the full clientid in the on-the-wire stateid allows more
      reliable detection of bad vs. expired stateid's, simplifies code, and
      ensures we won't reuse the opaque part of the stateid (as we currently
      do when the same openowner closes and reopens the same file).
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      d3b313a4
  10. 17 9月, 2011 2 次提交
  11. 14 9月, 2011 5 次提交
  12. 07 9月, 2011 1 次提交
  13. 04 9月, 2011 1 次提交
  14. 01 9月, 2011 4 次提交
  15. 28 8月, 2011 2 次提交
  16. 20 8月, 2011 1 次提交
  17. 16 7月, 2011 1 次提交
  18. 18 3月, 2011 1 次提交
  19. 14 2月, 2011 1 次提交
    • J
      nfsd4: acquire only one lease per file · acfdf5c3
      J. Bruce Fields 提交于
      Instead of acquiring one lease each time another client opens a file,
      nfsd can acquire just one lease to represent all of them, and reference
      count it to determine when to release it.
      
      This fixes a regression introduced by
      c45821d2 "locks: eliminate fl_mylease
      callback": after that patch, only the struct file * is used to determine
      who owns a given lease.  But since we recently converted the server to
      share a single struct file per open, if we acquire multiple leases on
      the same file from nfsd, it then becomes impossible on unlocking a lease
      to determine which of those leases (all of whom share the same struct
      file *) we meant to remove.
      
      Thanks to Takashi Iwai <tiwai@suse.de> for catching a bug in a previous
      version of this patch.
      Tested-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      acfdf5c3
  20. 12 1月, 2011 4 次提交