X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=fs%2Fnamespace.c;h=55605c552787cae1188ef93ee522ddd958e8cd83;hb=2409c873be56278ea41c345b453f76813e5c3fed;hp=398a50ff243848fae1145c695d6decc801d80f7d;hpb=a13eea6bd9ee62ceacfc5243d54c84396bc86cb4;p=karo-tx-linux.git diff --git a/fs/namespace.c b/fs/namespace.c index 398a50ff2438..55605c552787 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -313,7 +313,7 @@ int __mnt_want_write(struct vfsmount *m) * incremented count after it has set MNT_WRITE_HOLD. */ smp_mb(); - while (mnt->mnt.mnt_flags & MNT_WRITE_HOLD) + while (ACCESS_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD) cpu_relax(); /* * After the slowpath clears MNT_WRITE_HOLD, mnt_is_readonly will