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
This commit is contained in:
parent
3028dd8dd5
commit
89d26636f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323832
@ -750,9 +750,8 @@ cam_iosched_iop_stats_init(struct cam_iosched_softc *isc, struct iop_stats *ios)
|
||||
{
|
||||
|
||||
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 *isc, struct iop_stats *ios)
|
||||
ios->ema = 0;
|
||||
ios->emvar = 0;
|
||||
ios->softc = isc;
|
||||
cam_iosched_limiter_init(ios);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user