HomeFreeBSD

cam/iosched: Make each periph driver provide schedule fnp

Description

cam/iosched: Make each periph driver provide schedule fnp

When we init the iosched instance, require clients to provide a schedule
function. We have almost, but not quite everything to know when it is
safe to schedule new I/O. The periph drivers, however, have all the
information, so make them do it when the I/O Scheduler needs to maybe
schedule I/O for rate limiting, etc. and use it to do that.

Sponsored by: Netflix
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D46038

Details

Provenance
impAuthored on Jul 20 2024, 2:53 AM
Reviewer
jhb
Differential Revision
D46038: cam/iosched: Make each periph driver provide schedule fnp
Parents
rGdd6123ebf02b: cam/iosched: Log outlier latency events
Branches
Unknown
Tags
Unknown