thermal: armada: Add support for Armada AP806
[linux-2.6-block.git] / fs / namespace.c
index d18deb4c410b24ed276c9b60c869f4c06b6ec20f..e158ec6b527b2d72341e096f76e628b5e61ea4cf 100644 (file)
@@ -353,7 +353,7 @@ int __mnt_want_write(struct vfsmount *m)
         * incremented count after it has set MNT_WRITE_HOLD.
         */
        smp_mb();
-       while (ACCESS_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD)
+       while (READ_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD)
                cpu_relax();
        /*
         * After the slowpath clears MNT_WRITE_HOLD, mnt_is_readonly will