Hi all,
I’m studying and learning minifilter recently. I learn there are several locking mechanisms disable normal APC delivery, such as FltAcquirePushLockExclusive etc. And there are so many FltXXX APIs only can be called at PASSIVE_LEVEL, such as FltReadFile. Is it okay to call FltAcquirePushLockExclusive and then call FltReadFile inside the locking scope for example?
Thanks,
Ziv
Calling any long and complex operation under a lock is extremely bad idea anyway, regardless or IRQL requirements.
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntfsd…
> Hi all,
>
> I’m studying and learning minifilter recently. I learn there are several locking mechanisms disable normal APC delivery, such as FltAcquirePushLockExclusive etc. And there are so many FltXXX APIs only can be called at PASSIVE_LEVEL, such as FltReadFile. Is it okay to call FltAcquirePushLockExclusive and then call FltReadFile inside the locking scope for example?
>
> Thanks,
> Ziv
>
Thanks for all of your advices. It’s really a challenge to make my implementation lock free because I have to sync up with remote scanning server’s commands, sync up with shared memory access with remote scanning server and even more, deal with unintentional service broken up. @@a
I’ll take your advices into consideration and think how to improve/redesign the current implementation.
Thanks,
Ziv