ObRegisterCallbacks and reentrancy issues

Hello folks,

Let’s say that my driver has registered an ObCallback, to get notified about process handle creation; and the same driver needs to do ZwOpenProcess, to get info about processes.

The ObCallback notification arrives when the driver itself opens the process, so any ideas on how could I avoid that reentrancy issue?

Thanks in advance!