]> git.openfabrics.org - ~shefty/rdma-win.git/commit
dapl: fix ring buffer synchronization
authorSean Hefty <sean.hefty@intel.com>
Thu, 4 Mar 2010 22:00:34 +0000 (14:00 -0800)
committerSean Hefty <sean.hefty@intel.com>
Thu, 4 Mar 2010 22:00:34 +0000 (14:00 -0800)
commit1b32ba003ddd6d87afa33599a75331eaacd0c37f
treeabf9dd05f29c3d5f8ecc525cf8c8554a4c82f8ee
parent4995b96e85b23b65fcc1a770625f410f3f5469e8
dapl: fix ring buffer synchronization

The dapl ring buffer implementation is not thread safe.  Replace
the use of atomic variables with actual locking to ensure that
there are not races inserting and/or removing items at the same time.

Without proper synchronization, the EVD can report invalid events or
the same event multiple times.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
trunk/ulp/dapl2/dapl/common/dapl_ring_buffer_util.c
trunk/ulp/dapl2/dapl/common/dapl_ring_buffer_util.h
trunk/ulp/dapl2/dapl/include/dapl.h