mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[NTFS]
Moar locking svn path=/trunk/; revision=70777
This commit is contained in:
parent
e37191a410
commit
2bda155345
|
@ -106,7 +106,16 @@ NtfsCleanup(PNTFS_IRP_CONTEXT IrpContext)
|
|||
FileObject = IrpContext->FileObject;
|
||||
DeviceExtension = DeviceObject->DeviceExtension;
|
||||
|
||||
if (!ExAcquireResourceExclusiveLite(&DeviceExtension->DirResource,
|
||||
BooleanFlagOn(IrpContext->Flags, IRPCONTEXT_CANWAIT)))
|
||||
{
|
||||
return NtfsMarkIrpContextForQueue(IrpContext);
|
||||
}
|
||||
|
||||
Status = NtfsCleanupFile(DeviceExtension, FileObject, BooleanFlagOn(IrpContext->Flags, IRPCONTEXT_CANWAIT));
|
||||
|
||||
ExReleaseResourceLite(&DeviceExtension->DirResource);
|
||||
|
||||
if (Status == STATUS_PENDING)
|
||||
{
|
||||
return NtfsMarkIrpContextForQueue(IrpContext);
|
||||
|
|
Loading…
Reference in a new issue