1. 18 12月, 2014 5 次提交
    • Y
      libceph: store session key in cephx authorizer · ae385eaf
      Yan, Zheng 提交于
      Session key is required when calculating message signature. Save the session
      key in authorizer, this avoid lookup ticket handler for each message
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      ae385eaf
    • S
      ceph, rbd: delete unnecessary checks before two function calls · e96a650a
      SF Markus Elfring 提交于
      The functions ceph_put_snap_context() and iput() test whether their
      argument is NULL and then return immediately. Thus the test around the
      call is not needed.
      
      This issue was detected by using the Coccinelle software.
      Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
      [idryomov@redhat.com: squashed rbd.c hunk, changelog]
      Signed-off-by: NIlya Dryomov <idryomov@redhat.com>
      e96a650a
    • Y
      ceph: introduce a new inode flag indicating if cached dentries are ordered · 70db4f36
      Yan, Zheng 提交于
      After creating/deleting/renaming file, offsets of sibling dentries may
      change. So we can not use cached dentries to satisfy readdir. But we can
      still use the cached dentries to conclude -ENOENT for lookup.
      
      This patch introduces a new inode flag indicating if child dentries are
      ordered. The flag is set at the same time marking a directory complete.
      After creating/deleting/renaming file, we clear the flag on directory
      inode. This prevents ceph_readdir() from using cached dentries to satisfy
      readdir syscall.
      Signed-off-by: NYan, Zheng <zyan@redhat.com>
      70db4f36
    • I
      libceph: nuke ceph_kvfree() · 4965fc38
      Ilya Dryomov 提交于
      Use kvfree() from linux/mm.h instead, which is identical.  Also fix the
      ceph_buffer comment: we will allocate with kmalloc() up to 32k - the
      value of PAGE_ALLOC_COSTLY_ORDER, but that really is just an
      implementation detail so don't mention it at all.
      Signed-off-by: NIlya Dryomov <idryomov@redhat.com>
      4965fc38
    • 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
  2. 08 12月, 2014 2 次提交
  3. 07 12月, 2014 2 次提交
  4. 06 12月, 2014 3 次提交
  5. 05 12月, 2014 8 次提交
  6. 04 12月, 2014 16 次提交
  7. 03 12月, 2014 4 次提交