Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

IO Retry events from disk.sys

Suresh_PatilSuresh_Patil Member Posts: 119

We are seeing IO retry events with our storport miniport driver for SATA. The event signature is similar to this:
"The IO operation at logical block address X for Disk Y (PDO name Z) was retried"
There are lots of such messages.

There is no associated data loss or corruption, but we wanted to understand how our driver might be influencing these messages and what we can do to avoid them.
Surprisingly we have never returned any IO with any status other than SRB_STATUS_SUCCESS during the duration of the said IO stress test, but we still see those messages in event viewer.

Any pointers on when such messages get generated and what our driver needs to do to avoid them will be appreciated, thanks.

Regards,
Suresh

Comments

  • Suresh_PatilSuresh_Patil Member Posts: 119

    To bring this thread to closure, there was an oversight and we were in fact returning STATUS_FAILURE in a particular code path to few incoming IOs when we were running out of resources under heavy load.
    Returning STATUS_BUSY (and thereby letting the storport retry them) solved the issue.

    Regards,
    Suresh

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,251

    Thank you, Mr. Patil, for coming back and letting us know the ultimate cause/solution. That’s very helpful for folks in future reading the archive.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Developing Minifilters 29 July 2019 OSR Seminar Space
Writing WDF Drivers 23 Sept 2019 OSR Seminar Space
Kernel Debugging 21 Oct 2019 OSR Seminar Space
Internals & Software Drivers 18 Nov 2019 Dulles, VA