diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-08 22:28:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-08 22:28:48 +0100 |
commit | 4cd2c475a8beebb43869fee1ba94dc9a82aa01f3 (patch) | |
tree | 690a1a233724ed2a0b0f0e5f17971318caf38fb0 | |
parent | 0d7af498d7f76d5e7ab0cc3cb66ba793bdc7cac2 (diff) | |
download | serenity-4cd2c475a8beebb43869fee1ba94dc9a82aa01f3.zip |
Kernel: Make the space lock a RecursiveSpinLock
-rw-r--r-- | Kernel/VM/Space.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/VM/Space.h b/Kernel/VM/Space.h index 5f376ec389..17240d2378 100644 --- a/Kernel/VM/Space.h +++ b/Kernel/VM/Space.h @@ -68,7 +68,7 @@ public: void remove_all_regions(Badge<Process>); - SpinLock<u32>& get_lock() const { return m_lock; } + RecursiveSpinLock& get_lock() const { return m_lock; } size_t amount_clean_inode() const; size_t amount_dirty_private() const; @@ -82,7 +82,7 @@ private: Space(Process&, NonnullRefPtr<PageDirectory>); Process* m_process { nullptr }; - mutable SpinLock<u32> m_lock; + mutable RecursiveSpinLock m_lock; RefPtr<PageDirectory> m_page_directory; |