]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: transition QP to RTS before sending reply
authorSean Hefty <sean.hefty@intel.com>
Fri, 5 Feb 2010 22:25:15 +0000 (14:25 -0800)
committerSean Hefty <sean.hefty@intel.com>
Fri, 5 Feb 2010 22:25:15 +0000 (14:25 -0800)
commit6c718a1670aba8a3ee11c33ac5894231eb52182b
treef85f6ee24c1120d37d6989bf338bf8e68c147351
parent4b3a29d65f749302cb530ccaa4203e1ccc38f25f
librdmacm: transition QP to RTS before sending reply

In order to handle a race condition where the passive side of
a connection can receive data on a QP before the connection established
event has been received, transition the QP to RTS before sending the reply.
This allows a user to send a response to any received message immediately,
rather than waiting until the connection established event has been
processed.

A similar fix was applied to the kernel rdma_cm a while ago.
Simply duplicate the fix in the user space library.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/cma.c