1. 11 May, 2011 1 commit
  2. 04 May, 2011 1 commit
  3. 03 May, 2011 1 commit
  4. 31 Mar, 2011 1 commit
  5. 19 Jan, 2011 3 commits
  6. 08 Nov, 2010 1 commit
    • Sage Weil's avatar
      ceph: fix rdcache_gen usage and invalidate · cd045cb4
      Sage Weil authored
      
      We used to use rdcache_gen to indicate whether we "might" have cached
      pages.  Now we just look at the mapping to determine that.  However, some
      old behavior remains from that transition.
      
      First, rdcache_gen == 0 no longer means we have no pages.  That can happen
      at any time (presumably when we carry FILE_CACHE).  We should not reset it
      to zero, and we should not check that it is zero.
      
      That means that the only purpose for rdcache_revoking is to resolve races
      between new issues of FILE_CACHE and an async invalidate.  If they are
      equal, we should invalidate.  On success, we decrement rdcache_revoking,
      so that it is no longer equal to rdcache_gen.  Similarly, if we success
      in doing a sync invalidate, set revoking = gen - 1.  (This is a small
      optimization to avoid doing unnecessary invalidate work and does not
      affect correctness.)
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      cd045cb4
  7. 07 Nov, 2010 1 commit
  8. 28 Oct, 2010 1 commit
    • Sage Weil's avatar
      Revert "ceph: update issue_seq on cap grant" · 2f56f56a
      Sage Weil authored
      This reverts commit d91f2438
      
      .
      
      The intent of issue_seq is to distinguish between mds->client messages that
      (re)create the cap and those that do not, which means we should _only_ be
      updating that value in the create paths.  By updating it in handle_cap_grant,
      we reset it to zero, which then breaks release.
      
      The larger question is what workload/problem made me think it should be
      updated here...
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      2f56f56a
  9. 20 Oct, 2010 3 commits
    • Sage Weil's avatar
      ceph: use mapping->nrpages to determine if mapping is empty · 18a38193
      Sage Weil authored
      
      This is simpler and faster.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      18a38193
    • Sage Weil's avatar
      ceph: only invalidate on check_caps if we actually have pages · 93afd449
      Sage Weil authored
      
      The i_rdcache_gen value only implies we MAY have cached pages; actually
      check the mapping to see if it's worth bothering with an invalidate.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      93afd449
    • Yehuda Sadeh's avatar
      ceph: factor out libceph from Ceph file system · 3d14c5d2
      Yehuda Sadeh authored
      
      This factors out protocol and low-level storage parts of ceph into a
      separate libceph module living in net/ceph and include/linux/ceph.  This
      is mostly a matter of moving files around.  However, a few key pieces
      of the interface change as well:
      
       - ceph_client becomes ceph_fs_client and ceph_client, where the latter
         captures the mon and osd clients, and the fs_client gets the mds client
         and file system specific pieces.
       - Mount option parsing and debugfs setup is correspondingly broken into
         two pieces.
       - The mon client gets a generic handler callback for otherwise unknown
         messages (mds map, in this case).
       - The basic supported/required feature bits can be expanded (and are by
         ceph_fs_client).
      
      No functional change, aside from some subtle error handling cases that got
      cleaned up in the refactoring process.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      3d14c5d2
  10. 07 Oct, 2010 2 commits
    • Sage Weil's avatar
      ceph: update issue_seq on cap grant · d91f2438
      Sage Weil authored
      
      We need to update the issue_seq on any grant operation, be it via an MDS
      reply or a separate grant message.  The update in the grant path was
      missing.  This broke cap release for inodes in which the MDS sent an
      explicit grant message that was not soon after followed by a successful
      MDS reply on the same inode.
      
      Also fix the signedness on seq locals.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      d91f2438
    • Greg Farnum's avatar
      ceph: send cap release message early on failed revoke. · 21b559de
      Greg Farnum authored
      
      If an MDS tries to revoke caps that we don't have, we want to send
      releases early since they probably contain the caps message the MDS
      is looking for.
      
      Previously, we only sent the messages if we didn't have the inode either. But
      in a multi-mds system we can retain the inode after dropping all caps for
      a single MDS.
      Signed-off-by: default avatarGreg Farnum <gregf@hq.newdream.net>
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      21b559de
  11. 17 Sep, 2010 2 commits
  12. 14 Sep, 2010 1 commit
  13. 24 Aug, 2010 1 commit
    • 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
  14. 22 Aug, 2010 2 commits
    • Sage Weil's avatar
      ceph: include dirty xattrs state in snapped caps · 4a625be4
      Sage Weil authored
      
      When we snapshot dirty metadata that needs to be written back to the MDS,
      include dirty xattr metadata.  Make the capsnap reference the encoded
      xattr blob so that it will be written back in the FLUSHSNAP op.
      
      Also fix the capsnap creation guard to include dirty auth or file bits,
      not just tests specific to dirty file data or file writes in progress
      (this fixes auth metadata writeback).
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      4a625be4
    • Sage Weil's avatar
      ceph: fix xattr cap writeback · 082afec9
      Sage Weil authored
      
      We should include the xattr metadata blob in the cap update message any
      time we are flushing dirty state, NOT just when we are also dropping the
      cap.  This fixes async xattr writeback.
      
      Also, clean up the code slightly to avoid duplicating the bit test.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      082afec9
  15. 05 Aug, 2010 1 commit
    • 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
  16. 02 Aug, 2010 11 commits
  17. 27 Jul, 2010 1 commit
  18. 23 Jul, 2010 1 commit
    • Sage Weil's avatar
      ceph: fix dentry lease release · 1dadcce3
      Sage Weil authored
      
      When we embed a dentry lease release notification in a request, invalidate
      our lease so we don't think we still have it.  Otherwise we can get all
      sorts of incorrect client behavior when multiple clients are interacting
      with the same part of the namespace.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      1dadcce3
  19. 29 Jun, 2010 2 commits
  20. 10 Jun, 2010 3 commits