1. 26 1月, 2010 3 次提交
    • S
      ceph: properly handle aborted mds requests · 5b1daecd
      Sage Weil 提交于
      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: NSage Weil <sage@newdream.net>
      5b1daecd
    • S
      ceph: mark MDS CREATE as a write op · 3ea25f94
      Sage Weil 提交于
      CEPH_MDS_OP_CREATE was not correctly marked as a write operation.
      Signed-off-by: NSage Weil <sage@newdream.net>
      3ea25f94
    • J
      ceph: remove duplicate variable initialization · ec7384ec
      Julia Lawall 提交于
      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: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NSage Weil <sage@newdream.net>
      ec7384ec
  2. 15 1月, 2010 3 次提交
  3. 07 1月, 2010 1 次提交
  4. 24 12月, 2009 10 次提交
  5. 22 12月, 2009 16 次提交
  6. 12 12月, 2009 1 次提交
  7. 10 12月, 2009 1 次提交
  8. 08 12月, 2009 5 次提交