1. 19 2月, 2015 2 次提交
  2. 18 12月, 2014 3 次提交
    • Y
      ceph: use getattr request to fetch inline data · 01deead0
      Yan, Zheng 提交于
      Add a new parameter 'locked_page' to ceph_do_getattr(). If inline data
      in getattr reply will be copied to the page.
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      01deead0
    • Y
      ceph: add inline data to pagecache · 31c542a1
      Yan, Zheng 提交于
      Request reply and cap message can contain inline data. add inline data
      to the page cache if there is Fc cap.
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      31c542a1
    • Y
      ceph: fix file lock interruption · 9280be24
      Yan, Zheng 提交于
      When a lock operation is interrupted, current code sends a unlock request to
      MDS to undo the lock operation. This method does not work as expected because
      the unlock request can drop locks that have already been acquired.
      
      The fix is use the newly introduced CEPH_LOCK_FCNTL_INTR/CEPH_LOCK_FLOCK_INTR
      requests to interrupt blocked file lock request. These requests do not drop
      locks that have alread been acquired, they only interrupt blocked file lock
      request.
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      9280be24
  3. 06 6月, 2014 1 次提交
  4. 05 4月, 2014 1 次提交
    • Y
      ceph: use fl->fl_file as owner identifier of flock and posix lock · eb13e832
      Yan, Zheng 提交于
      flock and posix lock should use fl->fl_file instead of process ID
      as owner identifier. (posix lock uses fl->fl_owner. fl->fl_owner
      is usually equal to fl->fl_file, but it also can be a customized
      value). The process ID of who holds the lock is just for F_GETLK
      fcntl(2).
      
      The fix is rename the 'pid' fields of struct ceph_mds_request_args
      and struct ceph_filelock to 'owner', rename 'pid_namespace' fields
      to 'pid'. Assign fl->fl_file to the 'owner' field of lock messages.
      We also set the most significant bit of the 'owner' field. MDS can
      use that bit to distinguish between old and new clients.
      
      The MDS counterpart of this patch modifies the flock code to not
      take the 'pid_namespace' into consideration when checking conflict
      locks.
      Signed-off-by: NYan, Zheng <zheng.z.yan@intel.com>
      Reviewed-by: NSage Weil <sage@inktank.com>
      eb13e832
  5. 03 4月, 2014 1 次提交
  6. 18 2月, 2014 1 次提交
  7. 28 1月, 2014 1 次提交
  8. 21 1月, 2014 2 次提交
  9. 19 2月, 2013 1 次提交
    • A
      libceph: update ceph_fs.h · dd6f5e10
      Alex Elder 提交于
      Update most of "include/linux/ceph/ceph_fs.h" to match its user
      space counterpart in "src/include/ceph_fs.h" in the ceph tree.
      
      Everything that has changed is either:
          - added definitions (therefore no real effect on existing code)
          - deleting unused symbols
          - added or revised comments
      
      There were some differences between the struct definitions for
      ceph_mon_subscribe_item and the open field of ceph_mds_request_args;
      those differences remain.
      
      This and the next commit resolve:
          http://tracker.ceph.com/issues/4165Signed-off-by: NAlex Elder <elder@inktank.com>
      Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
      dd6f5e10
  10. 03 10月, 2012 1 次提交
  11. 31 7月, 2012 1 次提交
  12. 08 5月, 2012 1 次提交
  13. 25 5月, 2011 1 次提交
  14. 22 3月, 2011 1 次提交
  15. 13 1月, 2011 1 次提交
    • S
      ceph: add dir_layout to inode · 6c0f3af7
      Sage Weil 提交于
      Add a ceph_dir_layout to the inode, and calculate dentry hash values based
      on the parent directory's specified dir_hash function.  This is needed
      because the old default Linux dcache hash function is extremely week and
      leads to a poor distribution of files among dir fragments.
      Signed-off-by: NSage Weil <sage@newdream.net>
      6c0f3af7
  16. 21 10月, 2010 2 次提交
    • G
      571dba52
    • Y
      ceph: factor out libceph from Ceph file system · 3d14c5d2
      Yehuda Sadeh 提交于
      This factors out protocol and low-level storage parts of ceph into a
      separate libceph module living in net/ceph and include/linux/ceph.  This
      is mostly a matter of moving files around.  However, a few key pieces
      of the interface change as well:
      
       - ceph_client becomes ceph_fs_client and ceph_client, where the latter
         captures the mon and osd clients, and the fs_client gets the mds client
         and file system specific pieces.
       - Mount option parsing and debugfs setup is correspondingly broken into
         two pieces.
       - The mon client gets a generic handler callback for otherwise unknown
         messages (mds map, in this case).
       - The basic supported/required feature bits can be expanded (and are by
         ceph_fs_client).
      
      No functional change, aside from some subtle error handling cases that got
      cleaned up in the refactoring process.
      Signed-off-by: NSage Weil <sage@newdream.net>
      3d14c5d2
  17. 03 8月, 2010 3 次提交
  18. 02 8月, 2010 4 次提交
  19. 30 5月, 2010 1 次提交
    • S
      ceph: make lease code DN specific · dd1c9057
      Sage Weil 提交于
      The lease code includes a mask in the CEPH_LOCK_* namespace, but that
      namespace is changing, and only one mask (formerly _DN == 1) is used, so
      hard code for that value for now.
      
      If we ever extend this code to handle leases over different data types we
      can extend it accordingly.
      Signed-off-by: NSage Weil <sage@newdream.net>
      dd1c9057
  20. 18 5月, 2010 3 次提交
  21. 18 2月, 2010 1 次提交
  22. 03 2月, 2010 1 次提交
  23. 26 1月, 2010 2 次提交
  24. 24 12月, 2009 3 次提交
  25. 05 12月, 2009 1 次提交