1. 21 Mar, 2010 4 commits
    • Sage Weil's avatar
      ceph: fix authenticator timeout · 63733a0f
      Sage Weil authored
      We were failing to reconnect to services due to an old authenticator, even
      though we had the new ticket, because we weren't properly retrying the
      connect handshake, because we were calling an old/incorrect helper that
      left in_base_pos incorrect.  The result was a failure to reconnect to the
      OSD or MDS (with an authentication error) if the MDS restarted after the
      service had been up a few hours (long enough for the original authenticator
      to be invalid).  This was only a problem if the AUTH_X authentication was
      enabled.
      
      Now that the 'negotiate' and 'connect' stages are fully separated, we
      should use the prepare_read_connect() helper instead, and remove the
      obsolete one.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      63733a0f
    • Sage Weil's avatar
      ceph: fix inode removal from snap realm when racing with migration · 8b218b8a
      Sage Weil authored
      When an inode was dropped while being migrated between two MDSs,
      i_cap_exporting_issued was non-zero such that issue caps were non-zero and
      __ceph_is_any_caps(ci) was true.  This prevented the inode from being
      removed from the snap realm, even as it was dropped from the cache.
      
      Fix this by dropping any residual i_snap_realm ref in destroy_inode.
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      8b218b8a
    • Sage Weil's avatar
      ceph: add missing locking to protect i_snap_realm_item during split · 052bb34a
      Sage Weil authored
      All ci->i_snap_realm_item/realm->inodes_with_caps manipulation should be
      protected by realm->inodes_with_caps_lock.  This bug would have only bit
      us in a rare race with a realm split (during some snap creations).
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      052bb34a
    • Sage Weil's avatar
      ceph: implemented caps should always be superset of issued caps · 978097c9
      Sage Weil authored
      Added assertion, and cleared one case where the implemented caps were
      not following the issued caps.
      Signed-off-by: default avatarYehuda Sadeh <yehuda@hq.newdream.net>
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      978097c9
  2. 20 Mar, 2010 3 commits
  3. 19 Mar, 2010 33 commits