summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-01-03 16:58:50 -0700
committerAndreas Kling <kling@serenityos.org>2021-01-04 19:13:52 +0100
commit901ef3f1c87d15d2140be8a880250d09286e10a1 (patch)
tree2a8104d378a30cc5b23d61c13c65872c3ea0b6c2 /Kernel/FileSystem
parentfb84f0ec9c4d5e1a810dc05965ddbec7ff5d99ec (diff)
downloadserenity-901ef3f1c87d15d2140be8a880250d09286e10a1.zip
Kernel: Specify default memory order for some non-synchronizing Atomics
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/Plan9FileSystem.cpp2
-rw-r--r--Kernel/FileSystem/Plan9FileSystem.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Plan9FileSystem.cpp b/Kernel/FileSystem/Plan9FileSystem.cpp
index 6cc0b0d702..ff9b62b550 100644
--- a/Kernel/FileSystem/Plan9FileSystem.cpp
+++ b/Kernel/FileSystem/Plan9FileSystem.cpp
@@ -679,7 +679,7 @@ void Plan9FS::thread_main()
dbg() << "Plan9FS: Thread terminating, error reading";
return;
}
- } while (!m_thread_shutdown.load(AK::MemoryOrder::memory_order_relaxed));
+ } while (!m_thread_shutdown);
dbg() << "Plan9FS: Thread terminating";
}
diff --git a/Kernel/FileSystem/Plan9FileSystem.h b/Kernel/FileSystem/Plan9FileSystem.h
index d1de37a5c7..e371e743a3 100644
--- a/Kernel/FileSystem/Plan9FileSystem.h
+++ b/Kernel/FileSystem/Plan9FileSystem.h
@@ -162,7 +162,7 @@ private:
SpinLock<u8> m_thread_lock;
RefPtr<Thread> m_thread;
Atomic<bool> m_thread_running { false };
- Atomic<bool> m_thread_shutdown { false };
+ Atomic<bool, AK::MemoryOrder::memory_order_relaxed> m_thread_shutdown { false };
};
class Plan9FSInode final : public Inode {