Use PagedPool in PostRead

I want to use the memory allocated from PagedPool in PostRead.
What should I do?

I want to use FLT_PREOP_SYNCHRONIZE in PreRead,but it can’t be used in asynchronous read(paging read maybe a asynchronous read,right?).
I want to use FltDoCompletionProcessingWhenSafe,but it can’t be used in paging read.

Hi, clark.

Try queue a work item. And use pagedpool memory in it.

Regards.

Alex.

no,this don’t work for me.
I will do data-decryption in postread.For my cipher,it will use about 4K memory.
If I use a workitem,I must wait for completion.But now,maybe is DISPATCH_LEVEL,it can’t block.