1. 25 Jan, 2010 3 commits
    • Sage Weil's avatar
      ceph: properly handle aborted mds requests · 5b1daecd
      Sage Weil authored
      Previously, if the MDS request was interrupted, we would unregister the
      request and ignore any reply.  This could cause the caps or other cache
      state to become out of sync.  (For instance, aborting dbench and doing
      rm -r on clients would complain about a non-empty directory because the
      client didn't realize it's aborted file create request completed.)
      
      Even we don't unregister, we still can't process the reply normally because
      we are no longer holding the caller's locks (like the dir i_mutex).
      
      So, mark aborted operations with r_aborted, and in the reply handler, be
      sure to process all the caps.  Do not process the namespace changes,
      though, since we no longer will hold the dir i_mutex.  The dentry lease
      state can also be ignored as it's more forgiving.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      5b1daecd
    • Sage Weil's avatar
      ceph: mark MDS CREATE as a write op · 3ea25f94
      Sage Weil authored
      CEPH_MDS_OP_CREATE was not correctly marked as a write operation.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      3ea25f94
    • Julia Lawall's avatar
      ceph: remove duplicate variable initialization · ec7384ec
      Julia Lawall authored
      The variable client is initialized twice to the same (side effect-free)
      expression.  Drop one initialization.
      
      A simplified version of the semantic match that finds this problem is:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @forall@
      idexpression *x;
      identifier f!=ERR_PTR;
      @@
      
      x = f(...)
      ... when != x
      (
      x = f(...,<+...x...+>,...)
      |
      * x = f(...)
      )
      // </smpl>
      Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      ec7384ec
  2. 14 Jan, 2010 3 commits
  3. 07 Jan, 2010 1 commit
  4. 23 Dec, 2009 10 commits
  5. 22 Dec, 2009 16 commits
  6. 11 Dec, 2009 1 commit
  7. 09 Dec, 2009 1 commit
  8. 07 Dec, 2009 5 commits