openzfs / spl

A shim layer which adds the core interfaces required for OpenZFS.
https://zfsonlinux.org/
GNU General Public License v2.0
281 stars 180 forks source link

Add cv_timedwait_io() #674

Closed behlendorf closed 6 years ago

behlendorf commented 6 years ago

Add missing helper function cv_timedwait_io() which should be used when waiting on IO with a specified timeout.

behlendorf commented 6 years ago

It looks like io_schedule_timeout() wasn't exported in the 2.6.32 kernel so we'll need to figure out a reasonable way to handle that before this can be merged.

behlendorf commented 6 years ago

I've addressed the 2.6.32 issue by implementing our own io_schedule_timeout() by registering a timer to wake the process and calling io_schedule().