]> git.openfabrics.org - ~shefty/libibverbs.git/commit
Arm CQ early enough in pingpong examples
authorRalph Campbell <ralphc@pathscale.com>
Tue, 17 Jan 2006 17:20:37 +0000 (17:20 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 9 Nov 2006 19:35:58 +0000 (11:35 -0800)
commit1af90a30d8be4dd338c2571fda96f22a6587c7c0
tree7e120ac135588566fecbc253ba368d480262b12b
parent91f6faf31920e0823aa6cb98f22ec39dbe661891
Arm CQ early enough in pingpong examples

The example pingpong programs have a race when using events where the
client sends the first packet but the server hasn't yet armed the CQ
by calling ibv_req_notify_cq() thus waiting forever in
ibv_get_cq_event().  The fix is to move the call to
ibv_req_notify_cq() before signaling the client to "start".

Signed-off-by: Ralph Campbell <ralphc@pathscale.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
ChangeLog
examples/rc_pingpong.c
examples/srq_pingpong.c
examples/uc_pingpong.c
examples/ud_pingpong.c