Author: tfaber
Date: Sun Aug 17 21:52:54 2014
New Revision: 63902
URL:
http://svn.reactos.org/svn/reactos?rev=63902&view=rev
Log:
[NTOS:CC]
- Set the uninitialize event in CcUninitializeCacheMap to avoid deadlocking callers
Modified:
trunk/reactos/ntoskrnl/cc/fs.c
Modified: trunk/reactos/ntoskrnl/cc/fs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/fs.c?rev=63902…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/fs.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/fs.c [iso-8859-1] Sun Aug 17 21:52:54 2014
@@ -235,12 +235,12 @@
IN PLARGE_INTEGER TruncateSize OPTIONAL,
IN PCACHE_UNINITIALIZE_EVENT UninitializeCompleteEvent OPTIONAL)
{
-#if 0
- UNIMPLEMENTED;
- return FALSE;
-#else
- return NT_SUCCESS(CcRosReleaseFileCache(FileObject));
-#endif
+ NTSTATUS Status;
+
+ Status = CcRosReleaseFileCache(FileObject);
+ if (UninitializeCompleteEvent)
+ KeSetEvent(&UninitializeCompleteEvent->Event, IO_NO_INCREMENT, FALSE);
+ return NT_SUCCESS(Status);
}
BOOLEAN