how to cause pagion IO to be retried

Hi all!

In my FS filter driver I have a background task that is reading/writing to
file using non-cached IO.

I don’t want external paging IO to be performed at this time. On the other
hand I don’t want to fail it with

STATUS_ACCESS_DENIED or STATUS_DEVICE_BUSY since it causes “Delayed write
failed”

message and potential data loss. I tried to return
STATUS_INSUFFICIENT_RESOURCES, but

after about 30-40 retries the same message is popped and MM finishes its
retries.

Is there any way to cause infinite paging IO retries?

Thanks,

Dani

Dani Polovets wrote:

Hi all!

In my FS filter driver I have a background task that is reading/writing
to file using non-cached IO.

I don’t want external paging IO to be performed at this time. On the
other hand I don’t want to fail it with

STATUS_ACCESS_DENIED or STATUS_DEVICE_BUSY since it causes “Delayed
write failed”

message and potential data loss. I tried to return
STATUS_INSUFFICIENT_RESOURCES, but

after about 30-40 retries the same message is popped and MM finishes its
retries.

STATUS_FILE_LOCK_CONFLICT will tell MM to retry. Not sure if there is a
limit to the retry count though.

Pete

Is there any way to cause infinite paging IO retries?

Thanks,

Dani


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Kernel Drivers
Windows File System and Device Driver Consulting
www.KernelDrivers.com
866.263.9295