svn commit: r323832 - head/sys/cam
Warner Losh
imp at FreeBSD.org
Wed Sep 20 21:26:02 UTC 2017
Author: imp
Date: Wed Sep 20 21:26:01 2017
New Revision: 323832
URL: https://svnweb.freebsd.org/changeset/base/323832
Log:
cam iosched: Call cam_iosched_limiter_init() after ios->current is set to the default
Previously ios->current was set to 0 until the first
cam_iosched_cl_maybe_steer() call.
PR: 221954
Obtained from: ElectroBSD
Submitted by: Fabian Keil
Differential Revision: https://reviews.freebsd.org/D12349
Modified:
head/sys/cam/cam_iosched.c
Modified: head/sys/cam/cam_iosched.c
==============================================================================
--- head/sys/cam/cam_iosched.c Wed Sep 20 21:25:56 2017 (r323831)
+++ head/sys/cam/cam_iosched.c Wed Sep 20 21:26:01 2017 (r323832)
@@ -750,9 +750,8 @@ cam_iosched_iop_stats_init(struct cam_iosched_softc *i
{
ios->limiter = none;
- cam_iosched_limiter_init(ios);
ios->in = 0;
- ios->max = 300000;
+ ios->max = ios->current = 300000;
ios->min = 1;
ios->out = 0;
ios->pending = 0;
@@ -761,6 +760,7 @@ cam_iosched_iop_stats_init(struct cam_iosched_softc *i
ios->ema = 0;
ios->emvar = 0;
ios->softc = isc;
+ cam_iosched_limiter_init(ios);
}
static int
More information about the svn-src-head
mailing list