Date: Wed, 20 Sep 2017 21:26:01 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r323832 - head/sys/cam Message-ID: <201709202126.v8KLQ1nP057953@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709202126.v8KLQ1nP057953>