mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 00:54:18 +00:00
Removed this IoReleaseCancelSpinlock. I believe it's correct but seems to
bugcheck others. svn path=/trunk/; revision=13114
This commit is contained in:
parent
e4d14eb7ad
commit
2cbfa21b96
1 changed files with 6 additions and 7 deletions
|
@ -63,7 +63,7 @@ VOID DispCancelComplete(
|
||||||
* Context = Pointer to context information (FILE_OBJECT)
|
* Context = Pointer to context information (FILE_OBJECT)
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
KIRQL OldIrql;
|
/*KIRQL OldIrql;*/
|
||||||
PFILE_OBJECT FileObject;
|
PFILE_OBJECT FileObject;
|
||||||
PTRANSPORT_CONTEXT TranContext;
|
PTRANSPORT_CONTEXT TranContext;
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ VOID DispCancelComplete(
|
||||||
KeSetEvent(&TranContext->CleanupEvent, 0, FALSE);
|
KeSetEvent(&TranContext->CleanupEvent, 0, FALSE);
|
||||||
|
|
||||||
/* We are expected to release the cancel spin lock */
|
/* We are expected to release the cancel spin lock */
|
||||||
IoReleaseCancelSpinLock(OldIrql);
|
/*IoReleaseCancelSpinLock(OldIrql);*/
|
||||||
|
|
||||||
TI_DbgPrint(DEBUG_IRP, ("Leaving.\n"));
|
TI_DbgPrint(DEBUG_IRP, ("Leaving.\n"));
|
||||||
}
|
}
|
||||||
|
@ -150,7 +150,7 @@ VOID DDKAPI DispCancelRequest(
|
||||||
PTRANSPORT_CONTEXT TranContext;
|
PTRANSPORT_CONTEXT TranContext;
|
||||||
PFILE_OBJECT FileObject;
|
PFILE_OBJECT FileObject;
|
||||||
UCHAR MinorFunction;
|
UCHAR MinorFunction;
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
/*NTSTATUS Status = STATUS_SUCCESS;*/
|
||||||
|
|
||||||
TI_DbgPrint(DEBUG_IRP, ("Called.\n"));
|
TI_DbgPrint(DEBUG_IRP, ("Called.\n"));
|
||||||
|
|
||||||
|
@ -211,10 +211,9 @@ VOID DDKAPI DispCancelRequest(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Status != STATUS_PENDING)
|
IoReleaseCancelSpinLock(Irp->CancelIrql);
|
||||||
DispCancelComplete(FileObject);
|
|
||||||
else
|
DispCancelComplete(FileObject);
|
||||||
IoReleaseCancelSpinLock(Irp->CancelIrql);
|
|
||||||
|
|
||||||
TI_DbgPrint(MAX_TRACE, ("Leaving.\n"));
|
TI_DbgPrint(MAX_TRACE, ("Leaving.\n"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue