1. 17 7月, 2010 2 次提交
    • S
      ceph: do not include cap/dentry releases in replayed messages · e979cf50
      Sage Weil 提交于
      Strip the cap and dentry releases from replayed messages.  They can
      cause the shared state to get out of sync because they were generated
      (with the request message) earlier, and no longer reflect the current
      client state.
      Signed-off-by: NSage Weil <sage@newdream.net>
      e979cf50
    • S
      ceph: reuse request message when replaying against recovering mds · 01a92f17
      Sage Weil 提交于
      Replayed rename operations (after an mds failure/recovery) were broken
      because the request paths were regenerated from the dentry names, which
      get mangled when d_move() is called.
      
      Instead, resend the previous request message when replaying completed
      operations.  Just make sure the REPLAY flag is set and the target ino is
      filled in.
      
      This fixes problems with workloads doing renames when the MDS restarts,
      where the rename operation appears to succeed, but on mds restart then
      fails (leading to client confusion, app breakage, etc.).
      Signed-off-by: NSage Weil <sage@newdream.net>
      01a92f17
  2. 10 7月, 2010 2 次提交
  3. 09 7月, 2010 1 次提交
  4. 08 7月, 2010 1 次提交
  5. 06 7月, 2010 3 次提交
  6. 30 6月, 2010 2 次提交
  7. 25 6月, 2010 3 次提交
  8. 22 6月, 2010 2 次提交
    • S
      ceph: delay umount until all mds requests drop inode+dentry refs · 17c688c3
      Sage Weil 提交于
      This fixes a race between handle_reply finishing an mds request, signalling
      completion, and then dropping the request structing and its dentry+inode
      refs, and pre_umount function waiting for requests to finish before
      letting the vfs tear down the dcache.  If umount was delayed waiting for
      mds requests, we could race and BUG in shrink_dcache_for_umount_subtree
      because of a slow dput.
      
      This delays umount until the msgr queue flushes, which means handle_reply
      will exit and will have dropped the ceph_mds_request struct.  I'm assuming
      the VFS has already ensured that its calls have all completed and those
      request refs have thus been dropped as well (I haven't seen that race, at
      least).
      Signed-off-by: NSage Weil <sage@newdream.net>
      17c688c3
    • S
      ceph: handle splice_dentry/d_materialize_unique error in readdir_prepopulate · d69ed05a
      Sage Weil 提交于
      Handle a splice_dentry failure (due to a d_materialize_unique error)
      without crashing.  (Also, report the error code.)
      Signed-off-by: NSage Weil <sage@newdream.net>
      d69ed05a
  9. 18 6月, 2010 1 次提交
  10. 14 6月, 2010 3 次提交
  11. 12 6月, 2010 20 次提交