]> git.openfabrics.org - ~shefty/librdmacm.git/commit
cmatose: avoid missing completions
authorSean Hefty <sean.hefty@intel.com>
Wed, 14 Jan 2009 22:31:34 +0000 (14:31 -0800)
committerSean Hefty <sean.hefty@intel.com>
Wed, 14 Jan 2009 22:31:34 +0000 (14:31 -0800)
commit62c2bddeaf5275425e1a7e3add59c3913ccdb4e9
tree65a5f92682c3af232ad9876dcd44c4ed25404dbd
parent267c28a2f03b8fb63fa9907badd4130c710a1305
cmatose: avoid missing completions

cmatose uses a single CQ for send and receive completions.  It then
counts completions to determine if all sends and receives are done.
It's possible for a receive completion to be polled when the intent
is to count send completions.  (See server side polling for sends
done, then receives done.  The poll will get up to 8 completions,
which can lead to sends and receives being polled together.)

Fix this by separating the send and receive completions to their
own CQs to avoid any issues knowing what type of receives have been
polled from the CQ.

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