mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[CSQ]
- Do not complete IRP while likely holding a spinlock svn path=/trunk/; revision=57519
This commit is contained in:
parent
ce4ac4fb98
commit
a6127a1deb
1 changed files with 3 additions and 5 deletions
|
@ -23,7 +23,6 @@
|
|||
* all happen at DISPATCH_LEVEL all of the time, so thread switching on a single
|
||||
* processor can create races too.
|
||||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#include <ntdef.h>
|
||||
#undef DECLSPEC_IMPORT
|
||||
|
@ -68,11 +67,10 @@ static VOID NTAPI IopCsqCancelRoutine(PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
/* Now that we have our CSQ, complete the IRP */
|
||||
Csq->CsqAcquireLock(Csq, &Irql);
|
||||
{
|
||||
Csq->CsqRemoveIrp(Csq, Irp);
|
||||
Csq->CsqCompleteCanceledIrp(Csq, Irp);
|
||||
}
|
||||
Csq->CsqRemoveIrp(Csq, Irp);
|
||||
Csq->CsqReleaseLock(Csq, Irql);
|
||||
|
||||
Csq->CsqCompleteCanceledIrp(Csq, Irp);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue