]> git.openfabrics.org - ~shefty/libmlx4.git/commit
Add a memory barrier before setting an inline data segment's byte count
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Mon, 18 Jun 2007 16:27:45 +0000 (09:27 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 18 Jun 2007 16:27:45 +0000 (09:27 -0700)
commit596636e0773ceda258fd18a49924e1b73c011f24
tree1c95969b02deb4f7217aa911bc29291500dd9235
parentd55f78f1b60ab6f67fbac81b9c3f1c5572cd7f08
Add a memory barrier before setting an inline data segment's byte count

We need a memory barrier before setting an inline segment byte count
to make sure that all the inline data for a cacheline has been written
before changing the cacheline's byte-count from 0xffffffff to
something valid.

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
src/qp.c