ibmvscsi: Add memory barriers for send / receive
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 23 May 2014 15:52:11 +0000 (10:52 -0500)
committerChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2014 11:29:32 +0000 (13:29 +0200)
commit7114aae02742d6b5c5a0d39a41deb61d415d3717
treecf6d4c0153c99b262ee07a050afb3d6262d758fd
parent9ee755974bea2f9880e517ec985dc9dede1b3a36
ibmvscsi: Add memory barriers for send / receive

Add a memory barrier prior to sending a new command to the VIOS
to ensure the VIOS does not receive stale data in the command buffer.
Also add a memory barrier when processing the CRQ for completed commands.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Acked-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ibmvscsi/ibmvscsi.c