diff --git a/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp b/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp index a3745fbeea..487364f4b5 100644 --- a/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp +++ b/src/kernel/core/disk_device_manager/KDiskDeviceJobQueue.cpp @@ -6,6 +6,8 @@ #include +#include + #include "KDiskDevice.h" #include "KDiskDeviceJob.h" #include "KDiskDeviceJobQueue.h" @@ -180,7 +182,7 @@ KDiskDeviceJobQueue::Execute() if (fSyncSemaphore < 0) return fSyncSemaphore; // spawn a thread and run it - fThread = spawn_thread(_ThreadEntry, "disk device jobber", + fThread = spawn_kernel_thread(_ThreadEntry, "disk device jobber", B_NORMAL_PRIORITY, this); if (fThread < 0) { delete_sem(fSyncSemaphore);