1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-09-18 11:06:17 +00:00

Kernel: Protect Inode flock list with spinlock instead of mutex

This commit is contained in:
Andreas Kling 2022-02-03 17:28:45 +01:00
parent a81aebfd6e
commit e7dc9f71b8
2 changed files with 45 additions and 48 deletions

View file

@ -131,7 +131,7 @@ private:
short type;
};
Vector<Flock> m_flocks;
SpinlockProtected<Vector<Flock>> m_flocks;
public:
using AllInstancesList = IntrusiveList<&Inode::m_inode_list_node>;