Acquire dispatcher lock if we're going to be expanding the owner table, so that we...
authorAlex Ionescu <aionescu@gmail.com>
Fri, 13 Jan 2006 00:18:21 +0000 (00:18 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Fri, 13 Jan 2006 00:18:21 +0000 (00:18 +0000)
svn path=/trunk/; revision=20826

reactos/ntoskrnl/ex/resource.c

index bc1df84..d0fb26a 100644 (file)
@@ -304,7 +304,7 @@ ExpExpandResourceOwnerTable(IN PERESOURCE Resource,
                       OldSize * sizeof(OWNER_ENTRY));
 
         /* Acquire dispatcher lock to prevent thread boosting */
-        //KeAcquireDispatcherDatabaseLockAtDpcLevel();
+        KeAcquireDispatcherDatabaseLockAtDpcLevel();
 
         /* Set the new table data */
         Table->TableSize = NewSize;
@@ -314,7 +314,7 @@ ExpExpandResourceOwnerTable(IN PERESOURCE Resource,
         ExpVerifyResource(Resource);
 
         /* Release locks */
-        //KeReleaseDispatcherDatabaseLockFromDpcLevel();
+        KeReleaseDispatcherDatabaseLockFromDpcLevel();
         ExReleaseResourceLock(&Resource->SpinLock, *OldIrql);
 
         /* Free the old table */