staging: gasket: page table: remove extraneous memory barriers
authorTodd Poynor <toddpoynor@google.com>
Fri, 10 Aug 2018 03:21:05 +0000 (20:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Aug 2018 17:43:44 +0000 (19:43 +0200)
commit7b49682bdc6cf6f7d55e7c7e74415c2b101a9671
tree1929d45bb06b94c0ecceb558f20002141c2c040d
parent717264bab46e774e196574c77aae5f103b9b2f26
staging: gasket: page table: remove extraneous memory barriers

Some explicit memory barriers in the page table code are not necessary,
either because:

(a) The barrier follows a non-relaxed MMIO access that already performs
a read or write memory barrier.

(b) The barrier follows DMA API calls for which the device-visible
effects of IOMMU programming are guaranteed to be flushed to the IOMMU
prior to the call returning, and doesn't need to sync with normal memory
access.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_page_table.c