USB driver - Thread is waiting for all inflight requests to be acknowledged on Queue

Hi all,

KMDF USB Driver development on win-XP, service pack3.

I am getting below error message, when i am diconnecting the device while writing to the device.

“Thread 0x825C5020 is waiting for all inflight requests to be acknowledged on WDFQUEUE 0x7DC041F8”

“WdfRequestSetCompletionRoutine(Request, OnWriteInterrupt, Extension);”

I tried putting WdfDpcCancel in the “OnWriteInterrupt” routine.
Still iam facing the problem.

Please provide suggestions to resolve the problem,

thanks in advance.