how to safely serialize access to file

Hi,
how to safely serialize access to file in minifilter if I need to wait for
completion?
Is it even possible?

I know:

  • I can’t use any locking mechanism
  • I can’t use dedicated thread for access to file since I need to wait for
    completion
  • I can’t use metadatamanager sample because it does not solve exlusive
    access of concurrently running threads

Could I use paging IO solve my problem? (I need to serialize only non-paging
path)

Thanks in advance
and thanks to Neal for answering my previous posts

Jan Milan