]> git.openfabrics.org - ~shefty/rdma-win.git/commit
dapl: fix ring buffer synchronization
authorSean Hefty <sean.hefty@intel.com>
Thu, 4 Mar 2010 22:54:46 +0000 (14:54 -0800)
committerSean Hefty <sean.hefty@intel.com>
Thu, 4 Mar 2010 22:54:46 +0000 (14:54 -0800)
commite4ecdb4c62b7589b7d7c77d38b883fe05895ee1c
tree444ca51fb8db59667c31c6148b6e3a866befb8e8
parentecb1d23ab7af4d244d1cf424b3274f71c6bec70a
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>