Skip to content
  1. Aug 25, 2010
    • Sage Weil's avatar
      ceph: maintain i_head_snapc when any caps are dirty, not just for data · 7d8cb26d
      Sage Weil authored
      
      
      We used to use i_head_snapc to keep track of which snapc the current epoch
      of dirty data was dirtied under.  It is used by queue_cap_snap to set up
      the cap_snap.  However, since we queue cap snaps for any dirty caps, not
      just for dirty file data, we need to keep a valid i_head_snapc anytime
      we have dirty|flushing caps.  This fixes a NULL pointer deref in
      queue_cap_snap when writing back dirty caps without data (e.g.,
      snaptest-authwb.sh).
      
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      7d8cb26d
  2. Aug 23, 2010
  3. Aug 11, 2010
  4. Aug 06, 2010
    • Sage Weil's avatar
      ceph: only queue async writeback on cap revocation if there is dirty data · 0eb6cd49
      Sage Weil authored
      
      
      Normally, if the Fb cap bit is being revoked, we queue an async writeback.
      If there is no dirty data but we still hold the cap, this leaves the
      client sitting around doing nothing until the cap timeouts expire and the
      cap is released on its own (as it would have been without the revocation).
      
      Instead, only queue writeback if the bit is actually used (i.e., we have
      dirty data).  If not, we can reply to the revocation immediately.
      
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      0eb6cd49
  5. Aug 04, 2010
  6. Aug 03, 2010
  7. Aug 02, 2010