提交 842c1dde 编写于 作者: J Jon Mason 提交者: Greg Kroah-Hartman

NTB: correct memory barrier

mmiowb is not sufficient to flush the data and is causing data
corruption.  Change to wmb and the data corruption is no more.
Signed-off-by: NJon Mason <jon.mason@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8222b402
......@@ -1009,7 +1009,7 @@ static void ntb_tx_copy_task(struct ntb_transport_qp *qp,
hdr->ver = qp->tx_pkts;
/* Ensure that the data is fully copied out before setting the flag */
mmiowb();
wmb();
hdr->flags = entry->flags | DESC_DONE_FLAG;
ntb_ring_sdb(qp->ndev, qp->qp_num);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册