IB/ipath: Add barrier before updating WC head in shared memory
authorRalph Campbell <ralph.campbell@qlogic.com>
Fri, 6 Jul 2007 19:48:23 +0000 (12:48 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 10 Jul 2007 03:12:26 +0000 (20:12 -0700)
commit4fc570bcbe77f823aae183dd824869f79e74cc97
tree3955946608a973b06db8b7e5b3ec319354a6fa73
parent06cc85086e6896939f8c68f8518224748f6b0b2f
IB/ipath: Add barrier before updating WC head in shared memory

Add a barrier to make sure the CPU doesn't reorder writes to memory,
since user programs can be polling on the head index update and the
entry should be written before that.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_cq.c
drivers/infiniband/hw/ipath/ipath_ruc.c
drivers/infiniband/hw/ipath/ipath_srq.c
drivers/infiniband/hw/ipath/ipath_ud.c
drivers/infiniband/hw/ipath/ipath_verbs.c