[SCSI] ipr: Remove unnecessary memory barriers
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 15 Mar 2012 02:20:09 +0000 (21:20 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 28 Mar 2012 14:02:48 +0000 (15:02 +0100)
commita5fb407eed819e950e369060a822640582a1e538
tree755ae0e1e76a56247f3e329d8a9b35e4fcbfe85d
parent7dd21308b17e2b657d167adc7e20b41b7c6bbe5c
[SCSI] ipr: Remove unnecessary memory barriers

The ipr driver added some memory barriers in order to ensure
a PowerPC sync instruction was executed prior to sending a
command to the adapter to ensure the command block was
coherent with respect to the PCI bus's view of memory.
However, some time ago, the powerpc architecture writel
macros were changed to include the sync since most drivers
don't properly handle this. So remove these memory barriers
since they are not needed and result in executing twice
as many sync instructions, which has a significant performance
penalty.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/ipr.c