Strange delay after IRP completion

Hi all,

yesterday I investigated something strange (at least for me).

I’ve a small application that sends an IOCTL to my device driver and
waits on the event (in the overlapped struct) to be signaled.
The device driver set’s the irp to pending and after some work/time,
the irp is completed. Usually the application gets immediately the
signalled event. But sometimes it lasts up to 5 seconds.

Is there any known issue?

BTW: I used XP SP1 for testing.

Regards,
Thomas.