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:
parent
3becff9eae
commit
210689281f
2 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue