mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +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;
|
FileObject = IrpContext->FileObject;
|
||||||
DeviceExtension = DeviceObject->DeviceExtension;
|
DeviceExtension = DeviceObject->DeviceExtension;
|
||||||
|
|
||||||
|
if (!ExAcquireResourceExclusiveLite(&DeviceExtension->DirResource,
|
||||||
|
BooleanFlagOn(IrpContext->Flags, IRPCONTEXT_CANWAIT)))
|
||||||
|
{
|
||||||
|
return NtfsMarkIrpContextForQueue(IrpContext);
|
||||||
|
}
|
||||||
|
|
||||||
Status = NtfsCleanupFile(DeviceExtension, FileObject, BooleanFlagOn(IrpContext->Flags, IRPCONTEXT_CANWAIT));
|
Status = NtfsCleanupFile(DeviceExtension, FileObject, BooleanFlagOn(IrpContext->Flags, IRPCONTEXT_CANWAIT));
|
||||||
|
|
||||||
|
ExReleaseResourceLite(&DeviceExtension->DirResource);
|
||||||
|
|
||||||
if (Status == STATUS_PENDING)
|
if (Status == STATUS_PENDING)
|
||||||
{
|
{
|
||||||
return NtfsMarkIrpContextForQueue(IrpContext);
|
return NtfsMarkIrpContextForQueue(IrpContext);
|
||||||
|
|
Loading…
Reference in a new issue