mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
Kernel/Storage: Use more locking in the IDE code
This change should make it less possible for race conditions to happen and cause fatal errors when accessing the hardware.
This commit is contained in:
parent
8b446fb579
commit
b96e4c1308
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/supercomputer7
Commit: b96e4c1308
Pull-request: https://github.com/SerenityOS/serenity/pull/5971
3 changed files with 58 additions and 44 deletions
|
@ -163,10 +163,11 @@ protected:
|
|||
RefPtr<StorageDevice> m_master;
|
||||
RefPtr<StorageDevice> m_slave;
|
||||
|
||||
AsyncBlockDeviceRequest* m_current_request { nullptr };
|
||||
u32 m_current_request_block_index { 0 };
|
||||
RefPtr<AsyncBlockDeviceRequest> m_current_request;
|
||||
size_t m_current_request_block_index { 0 };
|
||||
bool m_current_request_flushing_cache { false };
|
||||
SpinLock<u8> m_request_lock;
|
||||
Lock m_lock { "IDEChannel" };
|
||||
|
||||
IOAddressGroup m_io_group;
|
||||
NonnullRefPtr<IDEController> m_parent_controller;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue