1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

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
parent 3becff9eae
commit 210689281f
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;
};
}