diff --git a/kernel/include/kernel/Storage/DiskCache.h b/kernel/include/kernel/Storage/DiskCache.h index a5a79313ee..24d4129f29 100644 --- a/kernel/include/kernel/Storage/DiskCache.h +++ b/kernel/include/kernel/Storage/DiskCache.h @@ -2,6 +2,7 @@ #include #include +#include #include namespace Kernel diff --git a/kernel/kernel/FS/DevFS/FileSystem.cpp b/kernel/kernel/FS/DevFS/FileSystem.cpp index 6a9d5c862f..29b8ca5316 100644 --- a/kernel/kernel/FS/DevFS/FileSystem.cpp +++ b/kernel/kernel/FS/DevFS/FileSystem.cpp @@ -87,10 +87,7 @@ namespace Kernel while (true) { SystemTimer::get().sleep_ms(10'000); - - LockGuard _(s_instance->m_device_lock); - s_instance->m_should_sync = true; - s_instance->m_sync_thread_blocker.unblock(); + s_instance->initiate_sync(false); } }, nullptr, sync_process )));