]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:18:23 +0000 (11:18 -0700)
commit9d2da49acf75f2c43847500f279fd68d802aabd4
treef281fd24fee35efd59a0878d54882e73a97d8a04
parent74dcc3a7d57ffab9ab0f7dd7f064f83868e61895
ibmvscsi: Add memory barriers for send / receive

commit 7114aae02742d6b5c5a0d39a41deb61d415d3717 upstream.

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>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ibmvscsi/ibmvscsi.c