4a1d47ebea
spdk_compiler_barrier() prevents the compiler from moving pointer dereferences across the barrier. Use this in the MMIO helper functions to ensure that the compiler can't reorder operations around e.g. hardware register access. Specifically, this fixes the compiler optimizing out writes to g_thread_mmio_ctrlr in the NVMe hotplug handling code. Change-Id: I6b9cec48da0e6d8d75825c28b12ece5251110080 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>