1. 05 May, 2014 3 commits
    • Dries Kimpe's avatar
      Revert "Fix potential connection starvation in bmi_ib" · 52c03abd
      Dries Kimpe authored
      This reverts commit 1883ac0f.
      One of these patches is causing connection setup to fail with a bad file
      descriptor error.
    • Zhang Jingwang's avatar
      Fix potential connection starvation in bmi_ib · 1883ac0f
      Zhang Jingwang authored
      The new coming connection are handled in the function
      ib_tcp_server_check_new_connections(); and this is called inside the
      function ib_block_for_activity(). However the ib_block_for_activity()
      is only called when the network is idle in BMI_ib_testcontext() or
      As a result, when the server is busy serving one client process, the
      other processes can't make a new connections to the server and thus
      they can't transfer data to the server concurrently.
      Change-Id: Ib9c28e0e5c38cf03741c2220a9a95e2c9ffbe5a1
    • Zhang Jingwang's avatar
      Fix a race condition which may lead to client hung up. · c4ba141e
      Zhang Jingwang authored
      The correctness of BMI depends on the order of two events: the
      completion event of the work request for the MSG_CTS message, the
      arrival of the message with type MSG_RTS_DONE.
      If the MSG_RTS_DONE messages arrives first, then there would be no
      request in the state of RQ_RTS_WAITING_RTS_DONE, so it can't advance
      the state machine. As a result, a log message is printed and the
      message is lost.
  2. 19 Jan, 2011 1 commit