From owner-svn-src-head@freebsd.org Wed Sep 20 21:26:02 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F687E247B5; Wed, 20 Sep 2017 21:26:02 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6A270809C4; Wed, 20 Sep 2017 21:26:02 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8KLQ1D7057954; Wed, 20 Sep 2017 21:26:01 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8KLQ1nP057953; Wed, 20 Sep 2017 21:26:01 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201709202126.v8KLQ1nP057953@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Wed, 20 Sep 2017 21:26:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r323832 - head/sys/cam X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/sys/cam X-SVN-Commit-Revision: 323832 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2017 21:26:02 -0000 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