1. 23 3月, 2010 1 次提交
    • S
      ceph: fix connection fault con_work reentrancy problem · 3c3f2e32
      Sage Weil 提交于
      The messenger fault was clearing the BUSY bit, for reasons unclear.  This
      made it possible for the con->ops->fault function to reopen the connection,
      and requeue work in the workqueue--even though the current thread was
      already in con_work.
      
      This avoids a problem where the client busy loops with connection failures
      on an unreachable OSD, but doesn't address the root cause of that problem.
      Signed-off-by: NSage Weil <sage@newdream.net>
      3c3f2e32
  2. 21 3月, 2010 1 次提交
    • S
      ceph: fix authenticator timeout · 63733a0f
      Sage Weil 提交于
      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: NSage Weil <sage@newdream.net>
      63733a0f
  3. 02 3月, 2010 2 次提交
  4. 26 2月, 2010 2 次提交
  5. 24 2月, 2010 1 次提交
  6. 17 2月, 2010 2 次提交
    • S
      ceph: cancel delayed work when closing connection · 91e45ce3
      Sage Weil 提交于
      This ensures that if/when we reopen the connection, we can requeue work on
      the connection immediately, without waiting for an old timer to expire.
      Queue new delayed work inside con->mutex to avoid any race.
      
      This fixes problems with clients failing to reconnect to the MDS due to
      the client_reconnect message arriving too late (due to waiting for an old
      delayed work timeout to expire).
      Signed-off-by: NSage Weil <sage@newdream.net>
      91e45ce3
    • S
      ceph: allow connection to be reopened by fault callback · e2663ab6
      Sage Weil 提交于
      Fix the messenger to allow a ceph_con_open() during the fault callback.
      Previously the work wasn't getting queued on the connection because the
      fault path avoids requeued work (normally spurious).  Loop on reopening by
      checking for the OPENING state bit.
      
      This fixes OSD reconnects when a TCP connection drops.
      Signed-off-by: NSage Weil <sage@newdream.net>
      e2663ab6
  7. 14 2月, 2010 1 次提交
  8. 11 2月, 2010 1 次提交
  9. 30 1月, 2010 1 次提交
  10. 26 1月, 2010 4 次提交
  11. 15 1月, 2010 1 次提交
  12. 24 12月, 2009 4 次提交
    • S
      ceph: support ceph_pagelist for message payload · 58bb3b37
      Sage Weil 提交于
      The ceph_pagelist is a simple list of whole pages, strung together via
      their lru list_head.  It facilitates encoding to a "buffer" of unknown
      size.  Allow its use in place of the ceph_msg page vector.
      
      This will be used to fix the huge buffer preallocation woes of MDS
      reconnection.
      Signed-off-by: NSage Weil <sage@newdream.net>
      58bb3b37
    • S
      ceph: add feature bits to connection handshake (protocol change) · 04a419f9
      Sage Weil 提交于
      Define supported and required feature set.  Fail connection if the server
      requires features we do not support (TAG_FEATURES), or if the server does
      not support features we require.
      Signed-off-by: NSage Weil <sage@newdream.net>
      04a419f9
    • S
      ceph: control access to page vector for incoming data · 350b1c32
      Sage Weil 提交于
      When we issue an OSD read, we specify a vector of pages that the data is to
      be read into.  The request may be sent multiple times, to multiple OSDs, if
      the osdmap changes, which means we can get more than one reply.
      
      Only read data into the page vector if the reply is coming from the
      OSD we last sent the request to.  Keep track of which connection is using
      the vector by taking a reference.  If another connection was already
      using the vector before and a new reply comes in on the right connection,
      revoke the pages from the other connection.
      Signed-off-by: NSage Weil <sage@newdream.net>
      350b1c32
    • S
      ceph: use connection mutex to protect read and write stages · ec302645
      Sage Weil 提交于
      Use a single mutex (previously out_mutex) to protect both read and write
      activity from concurrent ceph_con_* calls.  Drop the mutex when doing
      callbacks to avoid nested locking (the callback may need to call something
      like ceph_con_close).
      Signed-off-by: NSage Weil <sage@newdream.net>
      ec302645
  13. 22 12月, 2009 7 次提交
  14. 08 12月, 2009 2 次提交
  15. 21 11月, 2009 1 次提交
  16. 19 11月, 2009 2 次提交
    • S
      ceph: negotiate authentication protocol; implement AUTH_NONE protocol · 4e7a5dcd
      Sage Weil 提交于
      When we open a monitor session, we send an initial AUTH message listing
      the auth protocols we support, our entity name, and (possibly) a previously
      assigned global_id.  The monitor chooses a protocol and responds with an
      initial message.
      
      Initially implement AUTH_NONE, a dummy protocol that provides no security,
      but works within the new framework.  It generates 'authorizers' that are
      used when connecting to (mds, osd) services that simply state our entity
      name and global_id.
      
      This is a wire protocol change.
      Signed-off-by: NSage Weil <sage@newdream.net>
      4e7a5dcd
    • S
      ceph: remove unnecessary ceph_con_shutdown · 71ececda
      Sage Weil 提交于
      We require that ceph_con_close be called before we drop the connection,
      so this is unneeded.  Just BUG if con->sock != NULL.
      Signed-off-by: NSage Weil <sage@newdream.net>
      71ececda
  17. 11 11月, 2009 1 次提交
  18. 05 11月, 2009 1 次提交
  19. 04 11月, 2009 1 次提交
  20. 10 10月, 2009 1 次提交
  21. 07 10月, 2009 1 次提交
    • S
      ceph: messenger library · 31b8006e
      Sage Weil 提交于
      A generic message passing library is used to communicate with all
      other components in the Ceph file system.  The messenger library
      provides ordered, reliable delivery of messages between two nodes in
      the system.
      
      This implementation is based on TCP.
      Signed-off-by: NSage Weil <sage@newdream.net>
      31b8006e