[BTRFS] Reenable the MountMgr thread
authorPierre Schweitzer <pierre@reactos.org>
Sat, 7 Sep 2019 21:28:58 +0000 (23:28 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 7 Sep 2019 21:28:58 +0000 (23:28 +0200)
Now that IOCTL_MOUNTMGR_QUERY_POINTS and IOCTL_MOUNTMGR_CHANGE_NOTIFY have
been fixed, the thread no longer eats 100% CPU nor prevent ReactOS shutdown

drivers/filesystems/btrfs/btrfs.c

index 2f0c97d..2977667 100644 (file)
@@ -6013,11 +6013,9 @@ NTSTATUS __stdcall DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_S
 
     KeInitializeEvent(&mountmgr_thread_event, NotificationEvent, false);
 
-#ifndef __REACTOS__
     Status = PsCreateSystemThread(&mountmgr_thread_handle, 0, NULL, NULL, NULL, mountmgr_thread, NULL);
     if (!NT_SUCCESS(Status))
         WARN("PsCreateSystemThread returned %08x\n", Status);
-#endif
 
     IoRegisterFileSystem(DeviceObject);