Kernel: Fix epoll deadlock

If epoll_wait and epoll_notify were called at the same time, there was a
possible deadlock when epoll was confirming the event from the inode
This commit is contained in:
2025-05-29 22:08:24 +03:00
parent 1bd454b8fd
commit 9f4b451501
2 changed files with 15 additions and 0 deletions

View File

@@ -184,6 +184,7 @@ namespace Kernel
BAN::WeakPtr<SharedFileData> m_shared_region;
Mutex m_epoll_mutex;
BAN::LinkedList<class Epoll*> m_epolls;
friend class Epoll;
friend class FileBackedRegion;
friend class OpenFileDescriptorSet;
friend class SharedFileData;