Kernel: Protect mounted filesystem list with spinlock instead of mutex

This commit is contained in:
Andreas Kling 2022-02-03 01:37:46 +01:00
commit 210689281f
Notes: sideshowbarker 2024-07-17 19:50:59 +09:00
2 changed files with 9 additions and 9 deletions

View file

@ -19,7 +19,7 @@
#include <Kernel/FileSystem/Mount.h>
#include <Kernel/FileSystem/UnveilNode.h>
#include <Kernel/Forward.h>
#include <Kernel/Locking/MutexProtected.h>
#include <Kernel/Locking/SpinlockProtected.h>
namespace Kernel {
@ -95,7 +95,7 @@ private:
RefPtr<Inode> m_root_inode;
RefPtr<Custody> m_root_custody;
MutexProtected<Vector<Mount, 16>> m_mounts;
SpinlockProtected<Vector<Mount, 16>> m_mounts;
};
}