Doing work on UMDF Framework Thread

I have a notification IOCTL come in, I complete it quickly, but now I have some longer running work to do. I could spin up my own thread with attendant complexity of pushing the work there, but I wonder about just doing the work in the framework’s worker thread. Is that going to, e.g. risk exhausting WUDFHost’s worker thread pool? Cause other problems and/or generally make an experienced practitioner hold their nose?

I’m a driver noob; general wisdom most appreciated!

Regardless of UMDF or KMDF, it is never a great idea to hijack a caller’s thread for long running work or block for a long period of time. You could use a WDFWORKITEM to manage the deferred work, a thread pool if applicable, or handle the threading on your own.

Thanks Doron. That’s the motivation I need to not be lazy. :wink: