1. 05 5月, 2015 1 次提交
  2. 03 2月, 2015 1 次提交
    • C
      nfsd: implement pNFS layout recalls · c5c707f9
      Christoph Hellwig 提交于
      Add support to issue layout recalls to clients.  For now we only support
      full-file recalls to get a simple and stable implementation.  This allows
      to embedd a nfsd4_callback structure in the layout_state and thus avoid
      any memory allocations under spinlocks during a recall.  For normal
      use cases that do not intent to share a single file between multiple
      clients this implementation is fully sufficient.
      
      To ensure layouts are recalled on local filesystem access each layout
      state registers a new FL_LAYOUT lease with the kernel file locking code,
      which filesystems that support pNFS exports that require recalls need
      to break on conflicting access patterns.
      
      The XDR code is based on the old pNFS server implementation by
      Andy Adamson, Benny Halevy, Boaz Harrosh, Dean Hildebrand, Fred Isaman,
      Marc Eshel, Mike Sager and Ricardo Labiaga.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      c5c707f9
  3. 20 11月, 2014 1 次提交
  4. 02 10月, 2014 1 次提交
  5. 27 9月, 2014 6 次提交
  6. 01 8月, 2014 2 次提交
  7. 30 7月, 2014 1 次提交
  8. 24 7月, 2014 1 次提交
  9. 18 7月, 2014 1 次提交
  10. 17 7月, 2014 2 次提交
  11. 18 4月, 2014 1 次提交
  12. 30 3月, 2014 1 次提交
  13. 10 4月, 2013 1 次提交
  14. 05 4月, 2013 1 次提交
  15. 28 11月, 2012 1 次提交
  16. 15 11月, 2012 2 次提交
  17. 08 11月, 2012 3 次提交
  18. 11 9月, 2012 1 次提交
  19. 21 8月, 2012 1 次提交
  20. 20 6月, 2012 1 次提交
    • J
      nfsd4: remove unnecessary comment · 9068bed1
      J. Bruce Fields 提交于
      For the most part readers of cl_cb_state only need a value that is
      "eventually" right.  And the value is set only either 1) in response to
      some change of state, in which case it's set to UNKNOWN and then a
      callback rpc is sent to probe the real state, or b) in the handling of a
      response to such a callback.  UNKNOWN is therefore always a "temporary"
      state, and for the other states we're happy to accept last writer wins.
      
      So I think we're OK here.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      9068bed1
  21. 01 6月, 2012 1 次提交
  22. 29 3月, 2012 1 次提交
  23. 26 3月, 2012 1 次提交
    • J
      nfsd: convert nfs4_client->cl_cb_flags to a generic flags field · a52d726b
      Jeff Layton 提交于
      We'll need a way to flag the nfs4_client as already being recorded on
      stable storage so that we don't continually upcall. Currently, that's
      recorded in the cl_firststate field of the client struct. Using an
      entire u32 to store a flag is rather wasteful though.
      
      The cl_cb_flags field is only using 2 bits right now, so repurpose that
      to a generic flags field. Rename NFSD4_CLIENT_KILL to
      NFSD4_CLIENT_CB_KILL to make it evident that it's part of the callback
      flags. Add a mask that we can use for existing checks that look to see
      whether any flags are set, so that the new flags don't interfere.
      
      Convert all references to cl_firstate to the NFSD4_CLIENT_STABLE flag,
      and add a new NFSD4_CLIENT_RECLAIM_COMPLETE flag.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      a52d726b
  24. 10 3月, 2012 1 次提交
  25. 01 2月, 2012 2 次提交
  26. 05 1月, 2012 1 次提交
  27. 24 10月, 2011 1 次提交
  28. 27 9月, 2011 1 次提交
  29. 14 9月, 2011 1 次提交