[WDF] HACK: Workaround PCI causing DPCs to be flushed when system

affinity is disabled
This commit is contained in:
Justin Miller
2025-11-16 09:11:50 -08:00
parent a7b6470ab5
commit bc9ef01367

View File

@@ -1505,7 +1505,18 @@ Return Value:
// synchronize against this interrupt. For KMDF this will flush DPCs and
// for UMDF this will send a message to reflector to flush queued DPCs.
//
#ifdef __REACTOS__
/*
* This causes DPCs to be flushed when SystemAffinity is already disabled.
* To be clear this isn't the fault of KMDF, but instead it's the fault
* of our current PCI.sys due to how it's architected.
*/
#ifndef FX_IS_KERNEL_MODE
FlushQueuedDpcs();
#endif
#else
FlushQueuedDpcs();
#endif
#if FX_IS_KERNEL_MODE
//