Performance Tip: Completing Requests During HwStartIo

By completing outstanding I/O requests that are ready for completion in its HwStorStartIo routine, a miniport can spend less time at device IRQL (DIRQL), which improves system responsiveness, and also take advantage of new Storport optimizations that further improve system responsiveness and I/O throughput. The point is to try to spend as little time as possible in an interrupt handler. To take advantage of the new Storport optimizations, a miniport:

While in its HwStorStartIo routine, a miniport should check for completed requests after starting the requested I/O operation.