Kernel: Improve locking in Process, VFS and ATAController

We used to block on all process access. This meant that shell
reading the keyboard input would block all VFS access making disk
accesses practically impossible. We now block only when it is
necessary :)
This commit is contained in:
Bananymous
2023-03-30 22:02:16 +03:00
parent dcee92a6bc
commit b048630e5b
7 changed files with 90 additions and 60 deletions

View File

@@ -87,6 +87,7 @@ namespace Kernel
private:
ATABus m_buses[2];
const PCIDevice& m_pci_device;
SpinLock m_lock;
friend class ATADevice;